Skip to content

Commit 0d2e29e

Browse files
committed
fix: use cpu time for walltime
1 parent 1749a44 commit 0d2e29e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google_benchmark/src/benchmark.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ codspeed::RawWalltimeBenchmark generate_raw_walltime_data(
379379
}
380380

381381
walltime_data.iter_per_round = run.iterations;
382-
walltime_data.round_times_ns.push_back(run.GetAdjustedRealTime());
382+
383+
walltime_data.round_times_ns.push_back(run.GetAdjustedCPUTime());
383384
}
384385

385386
if (run_results.aggregates_only.empty()) {

0 commit comments

Comments
 (0)