mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-09 22:18:00 -05:00
James round seconds (#129)
this is a ford of jd/harness-fixes that is currently live on the benches, the ONLY thing i changed is im rounding the timestamps to the nearest second please approve --------- Co-authored-by: J-Doiron <139803019+J-Doiron@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,7 @@ def run_benchmark():
|
||||
time.sleep(10)
|
||||
|
||||
exec_steam_run_command(STEAM_GAME_ID)
|
||||
setup_start_time = time.time()
|
||||
setup_start_time = int(time.time())
|
||||
|
||||
# Wait for menu to load
|
||||
time.sleep(30)
|
||||
@@ -96,10 +96,10 @@ def run_benchmark():
|
||||
logging.info("Benchmark didn't start.")
|
||||
sys.exit(1)
|
||||
|
||||
elapsed_setup_time = round((time.time() - setup_start_time), 2)
|
||||
elapsed_setup_time = round((int(time.time()) - setup_start_time), 2)
|
||||
logging.info("Harness setup took %.2f seconds", elapsed_setup_time)
|
||||
|
||||
test_start_time = time.time()
|
||||
test_start_time = int(time.time())
|
||||
|
||||
time.sleep(95) # wait for benchmark to finish 95 seconds
|
||||
|
||||
@@ -108,7 +108,7 @@ def run_benchmark():
|
||||
logging.info("Results screen was not found!")
|
||||
sys.exit(1)
|
||||
|
||||
test_end_time = time.time()
|
||||
test_end_time = int(time.time())
|
||||
elapsed_test_time = round((test_end_time - test_start_time), 2)
|
||||
logging.info("Benchmark took %.2f seconds", elapsed_test_time)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user