aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-02-06 12:39:32 +0000
committerAria Shrimpton <me@aria.rip>2024-02-06 12:39:32 +0000
commitd426d2861cf0b652f2c38bc1860b0202ebadf870 (patch)
tree36dc505574c88543a9e42a6a656a55cdc946b200 /src
parent6bc9593366a6577ebf30265eb186bf9e25af3a7c (diff)
add seconds suffix
Diffstat (limited to 'src')
-rw-r--r--src/crates/candelabra/src/cost/benchmark.rs1
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,