Tests: Fix calculation of elapsed time in tests

We were already taking the "elapsed" part of the global timer, by
subtracting the known runtime from that we always ended up with 0
milliseconds.
This commit is contained in:
Jelle Raaijmakers 2025-07-12 11:16:04 +02:00
parent 4dd538e708
commit c39edfab2d
Notes: github-actions[bot] 2025-07-12 12:06:30 +00:00

View file

@ -255,7 +255,7 @@ int TestSuite::run(Vector<NonnullRefPtr<TestCase>> const& tests)
}
auto const runtime = m_test_time + m_bench_time;
auto const elapsed = global_timer.elapsed() - runtime;
auto const elapsed = global_timer.elapsed();
dbgln("Finished {} tests and {} benchmarks in {}ms ({}ms tests, {}ms benchmarks, {}ms other).",
test_count,