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

+1
View File
@@ -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,