Update timing decorator

This commit is contained in:
David Doblas Jiménez 2021-10-06 18:47:26 +02:00
parent a4da51003a
commit bec028d7a5

View File

@ -10,7 +10,7 @@ def timeit(name):
t0 = time.perf_counter()
result = original(*args, **kwargs)
t1 = time.perf_counter()
print(f"Time to evaluate {name}: {(t1 - t0)*1000:.3f} ms\n")
print(f"Time to evaluate problem {int(name[7:]):003d}: {(t1 - t0)*1000:.3f} ms\n")
return result
return wrapper
return profile