From 036afed348892ccd0c3b6dbf1965835b6b5e4da9 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Thu, 17 Jun 2021 21:13:06 +0200 Subject: [PATCH] Change time scale to ms --- src/Python/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/utils.py b/src/Python/utils.py index 98d19ab..2188079 100644 --- a/src/Python/utils.py +++ b/src/Python/utils.py @@ -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:.3f} s\n") + print(f"Time to evaluate {name}: {(t1 - t0)*1000:.3f} ms\n") return result return wrapper return profile