This commit is contained in:
Hugo van Kemenade 2024-04-01 20:49:19 +03:00
parent 88ddcde8d8
commit 97c6e46f34

View File

@ -32,7 +32,8 @@ def timer(func, label, *args) -> None:
break
endtime = time.time()
print(
f"{label}: completed {x + 1} iterations in {endtime - starttime:.4f}s, {(endtime - starttime) / (x + 1.0):.6f}s per iteration"
f"{label}: completed {x + 1} iterations in {endtime - starttime:.4f}s, "
f"{(endtime - starttime) / (x + 1.0):.6f}s per iteration"
)