(Fn)
| 31 | import time |
| 32 | |
| 33 | def timer(Fn): |
| 34 | def inner(*args, **kwargs): |
| 35 | Ts = time.time() |
| 36 | Fn(*args, **kwargs) |
| 37 | Te = time.time() |
| 38 | print(f'dT = {Te-Ts:.3f} seconds') |
| 39 | return inner |
| 40 | |
| 41 | @timer |
| 42 | def sleeper(sec): |
nothing calls this directly
no outgoing calls
no test coverage detected