This commit is contained in:
2025-03-07 05:41:59 +08:00
parent 0bcd8ce52e
commit 33e1dc5118
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# 函数计时器
import guan
@guan.timer_decorator
def my_function():
import time
time.sleep(2)
print('Run finished')
for _ in range(3):
my_function()