mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00: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
Notes:
github-actions[bot]
2025-07-12 12:06:30 +00:00
Author: https://github.com/gmta
Commit: c39edfab2d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5415
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue