mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 21:48: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:
@@ -44,7 +44,7 @@ def run_benchmark():
|
||||
"""run benchmark"""
|
||||
start_game()
|
||||
|
||||
t1 = time.time()
|
||||
t1 = int(time.time())
|
||||
optimizing_shaders = kerasService.look_for_word("optimize", interval=1, attempts=10)
|
||||
if optimizing_shaders:
|
||||
time.sleep(40)
|
||||
@@ -95,7 +95,7 @@ def run_benchmark():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
t2 = time.time()
|
||||
t2 = int(time.time())
|
||||
duration = round((t2 - t1), 2)
|
||||
logging.info("Harness setup took %d seconds", duration)
|
||||
|
||||
@@ -103,13 +103,13 @@ def run_benchmark():
|
||||
if result is None:
|
||||
raise ValueError("benchmark didn't start on time or at all")
|
||||
|
||||
benchmark_start = time.time()
|
||||
benchmark_start = int(time.time())
|
||||
time.sleep(110)
|
||||
result = kerasService.wait_for_word("options", interval=0.5, timeout=30)
|
||||
if result is None:
|
||||
raise ValueError("did not detect end of benchmark, should have landed back in main menu")
|
||||
|
||||
benchmark_end = time.time()
|
||||
benchmark_end = int(time.time())
|
||||
duration = round((benchmark_end - benchmark_start), 2)
|
||||
logging.info("Benchmark took %d seconds", duration)
|
||||
terminate_processes("Wonderlands")
|
||||
|
||||
Reference in New Issue
Block a user