Change time scale to ms

This commit is contained in:
David Doblas Jiménez 2021-06-17 21:13:06 +02:00
parent 400efe427c
commit 036afed348

View File

@ -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