Update timing decorator
This commit is contained in:
parent
a4da51003a
commit
bec028d7a5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user