diff options
author | Aria Shrimpton <me@aria.rip> | 2024-02-06 12:39:32 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-02-06 12:39:32 +0000 |
commit | d426d2861cf0b652f2c38bc1860b0202ebadf870 (patch) | |
tree | 36dc505574c88543a9e42a6a656a55cdc946b200 /src/crates | |
parent | 6bc9593366a6577ebf30265eb186bf9e25af3a7c (diff) |
add seconds suffix
Diffstat (limited to 'src/crates')
-rw-r--r-- | src/crates/candelabra/src/cost/benchmark.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index 885bc4a..9c5c382 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -155,6 +155,7 @@ fn parse_time_str(quantity: &str, suffix: &str) -> Option<Cost> { Some( f64::from_str(quantity).ok()? * match suffix { + " s" => 1e9, "ms" => 1e6, "µs" => 1e3, "ns" => 1.0, |