Skip to content
Snippets Groups Projects
Commit 15cde9b9acfb authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: clarify the elapsed computation

parent 6c6e8c1343d6
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,8 @@
# Do the commits N time
start = time.time()
for i in range(10):
if (time.time() - start >= 60) and i >= 3:
elapsed = time.time() - start
if (elapsed >= 60) and i >= 3:
break
needrollback = False
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment