mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Add support for microseconds, closes #684
This commit is contained in:
1 parent
c440cb702d
commit
4564977b7a
6 files changed
+34
-6
No files matched your search
@@ -391,6 +391,7 @@ impl Options {
|
||||
}
|
||||
|
||||
options.time_unit = match matches.get_one::<String>("time-unit").map(|s| s.as_str()) {
|
||||
Some("microsecond") => Some(Unit::MicroSecond),
|
||||
Some("millisecond") => Some(Unit::MilliSecond),
|
||||
Some("second") => Some(Unit::Second),
|
||||
_ => None,
|
||||
|
||||
Reference in new issue
Block a user