Change time scale to ms
This commit is contained in:
parent
400efe427c
commit
036afed348
@ -10,7 +10,7 @@ def timeit(name):
|
|||||||
t0 = time.perf_counter()
|
t0 = time.perf_counter()
|
||||||
result = original(*args, **kwargs)
|
result = original(*args, **kwargs)
|
||||||
t1 = time.perf_counter()
|
t1 = time.perf_counter()
|
||||||
print(f"Time to evaluate {name}: {t1 - t0:.3f} s\n")
|
print(f"Time to evaluate {name}: {(t1 - t0)*1000:.3f} ms\n")
|
||||||
return result
|
return result
|
||||||
return wrapper
|
return wrapper
|
||||||
return profile
|
return profile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user