updated from Atlas
This commit is contained in:
9
07-closure-deco/clockdeco_param_demo2.py
Normal file
9
07-closure-deco/clockdeco_param_demo2.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import time
|
||||
from clockdeco_param import clock
|
||||
|
||||
@clock('{name}({args}) dt={elapsed:0.3f}s')
|
||||
def snooze(seconds):
|
||||
time.sleep(seconds)
|
||||
|
||||
for i in range(3):
|
||||
snooze(.123)
|
||||
Reference in New Issue
Block a user