diff --git a/2024.01.16_GUAN_package_learning/common/example_of_timer.py b/2024.01.16_GUAN_package_learning/common/example_of_timer.py index da05f1e..fccf6f0 100644 --- a/2024.01.16_GUAN_package_learning/common/example_of_timer.py +++ b/2024.01.16_GUAN_package_learning/common/example_of_timer.py @@ -5,11 +5,11 @@ import guan def test1(a, b): import time print(a) - time.sleep(2) + time.sleep(1) print(b) print('Run finished.') -for _ in range(3): +for _ in range(2): test1(10, b=20) print() @@ -17,9 +17,9 @@ print() def test2(a, b): import time print(a) - time.sleep(2) + time.sleep(1) print(b) print('Run finished.') -for _ in range(3): - guan.timer(test2, 10, b=20) \ No newline at end of file +for _ in range(2): + guan.timer(test2, 100, b=200) \ No newline at end of file