From d426d2861cf0b652f2c38bc1860b0202ebadf870 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Tue, 6 Feb 2024 12:39:32 +0000 Subject: add seconds suffix --- src/crates/candelabra/src/cost/benchmark.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crates') 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 { Some( f64::from_str(quantity).ok()? * match suffix { + " s" => 1e9, "ms" => 1e6, "µs" => 1e3, "ns" => 1.0, -- cgit v1.2.3