From 87184481aa36d2a3873589efd7916a899e3d1a02 Mon Sep 17 00:00:00 2001 From: Adrien Cacciaguerra Date: Mon, 3 Nov 2025 18:16:22 +0100 Subject: [PATCH] fix(walltime): use seconds instead of nanoseconds for total_time --- core/src/walltime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/walltime.cpp b/core/src/walltime.cpp index 320774d..f347454 100644 --- a/core/src/walltime.cpp +++ b/core/src/walltime.cpp @@ -207,7 +207,8 @@ void generate_codspeed_walltime_report( double total_time = std::accumulate(raw_benchmark.round_times_ns.begin(), - raw_benchmark.round_times_ns.end(), 0.0); + raw_benchmark.round_times_ns.end(), 0.0) / + 1e9; double mean = raw_benchmark.mean_ns; double median = raw_benchmark.median_ns;