diff options
Diffstat (limited to 'cli/tools/bench/reporters.rs')
-rw-r--r-- | cli/tools/bench/reporters.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/bench/reporters.rs b/cli/tools/bench/reporters.rs index 6b1e885a9..68788bc96 100644 --- a/cli/tools/bench/reporters.rs +++ b/cli/tools/bench/reporters.rs @@ -236,6 +236,10 @@ impl BenchReporter for ConsoleReporter { ) ); + if !stats.high_precision && stats.used_explicit_timers { + println!("{}", colors::yellow(format!("Warning: start() and end() calls in \"{}\" are ignored because it averages less\nthan 0.01s per iteration. Remove them for better results.", &desc.name))); + } + self.group_measurements.push((desc, stats.clone())); } |