From 86dcd7d323799043c100dbf358409e986a872a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20H=C3=B6ffner?= Date: Sat, 11 Mar 2023 14:47:20 +0100 Subject: [PATCH] Fix bug where time over the maximum would be reported as 1ms in quick mode. (#659) --- src/routine.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routine.rs b/src/routine.rs index 9567fb43..b03b171d 100644 --- a/src/routine.rs +++ b/src/routine.rs @@ -102,7 +102,6 @@ pub(crate) trait Routine { // Early exit for extremely long running benchmarks: if time_start.elapsed() > maximum_bench_duration { - let t_prev = 1_000_000f64; let iters = vec![n as f64, n as f64].into_boxed_slice(); let elapsed = vec![t_prev, t_prev].into_boxed_slice(); return (ActualSamplingMode::Flat, iters, elapsed);