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:
j-lin-lmg
2025-04-09 14:34:19 -07:00
committed by GitHub
parent 0cff2aae7c
commit 36c542be4a
74 changed files with 2115 additions and 257 deletions

View File

@@ -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)