mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
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:
parent
4dd538e708
commit
c39edfab2d
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user