Add support for microseconds, closes #684

This commit is contained in:
David Peter authored and David Peter committed 2023-10-05 09:39:00 +02:00
1 parent c440cb702d
commit 4564977b7a
6 files changed
+34 -6

No files matched your search

+9
View File
@@ -261,6 +261,15 @@ fn returns_mean_time_in_correct_unit() {
.assert()
.success()
.stdout(predicate::str::contains("Time (mean ± σ): 1234.0 ms ±"));
hyperfine_debug()
.arg("--time-unit=microsecond")
.arg("sleep 1.234")
.assert()
.success()
.stdout(predicate::str::contains(
"Time (mean ± σ): 1234000.0 µs ±",
));
}
#[test]