Skip to content

Commit 86dcd7d

Browse files
Fix bug where time over the maximum would be reported as 1ms in quick mode. (#659)
1 parent 2942aee commit 86dcd7d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/routine.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ pub(crate) trait Routine<M: Measurement, T: ?Sized> {
102102

103103
// Early exit for extremely long running benchmarks:
104104
if time_start.elapsed() > maximum_bench_duration {
105-
let t_prev = 1_000_000f64;
106105
let iters = vec![n as f64, n as f64].into_boxed_slice();
107106
let elapsed = vec![t_prev, t_prev].into_boxed_slice();
108107
return (ActualSamplingMode::Flat, iters, elapsed);

0 commit comments

Comments
 (0)