This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 15:59:10 +02:00
1 parent 9ec7a9c920
commit 641451aea6
15 files changed
+459 -443

No files matched your search

+3 -2
View File
@@ -1,6 +1,6 @@
use std::fmt;
use crate::benchmark::quantity::Second;
use crate::benchmark::quantity::{millisecond, Time, TimeQuantity};
use crate::benchmark::MIN_EXECUTION_TIME;
use crate::output::format::format_duration;
@@ -22,10 +22,11 @@ impl fmt::Display for Warnings {
match *self {
Warnings::FastExecutionTime => write!(
f,
"Command took less than {MIN_EXECUTION_TIME} to complete. Note that the results might be \
"Command took less than {min_execution_time} to complete. Note that the results might be \
inaccurate because hyperfine can not calibrate the shell startup time much \
more precise than this limit. You can try to use the `-N`/`--shell=none` \
option to disable the shell completely.",
min_execution_time = MIN_EXECUTION_TIME.to_string(millisecond)
),
Warnings::NonZeroExitCode => write!(f, "Ignoring non-zero exit code."),
Warnings::SlowInitialRun(time_first_run, ref options) => write!(