MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / inner

Function inner

code/basics/timer_decorator.py:34–38  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

32
33def 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

Callers

nothing calls this directly

Calls 1

FnFunction · 0.50

Tested by

no test coverage detected