aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench.py b/bench.py
index 7875955..6b2c10f 100755
--- a/bench.py
+++ b/bench.py
@@ -221,10 +221,10 @@ def main():
continue
end_time = datetime.datetime.now()
bench.results['facts']['end-time'] = end_time.isoformat()
- bench.results['facts']['duration'] = end_time - start_time
+ bench.results['facts']['duration'] = (end_time - start_time).total_seconds()
# Save results in resultdir
- bench.save(os.path.join(src.globalvars.resdir, f"{bench.name}.save"))
+ bench.save(src.globalvars.resdir)
if hasattr(bench, "cleanup"):
print_status("Cleaning up", bench.name, "...")