Update warning text

This commit is contained in:
David Peter committed 2022-03-05 12:47:30 +01:00
1 parent 851e9b8dfa
commit 65932dd5ce
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -17,7 +17,10 @@ impl fmt::Display for Warnings {
match *self {
Warnings::FastExecutionTime => write!(
f,
"Command took less than {:.0} ms to complete. Results might be inaccurate.",
"Command took less than {:.0} ms 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 * 1e3
),
Warnings::NonZeroExitCode => write!(f, "Ignoring non-zero exit code."),