Skip to content
Snippets Groups Projects
Commit a90c4232 authored by mattrutherford's avatar mattrutherford Committed by GitHub
Browse files

Increase precision of benchmarking results summary (#6092)


Co-authored-by: default avatarMatt Rutherford <mattrutherford@users.noreply.github.com>
parent 5bf9e631
Branches
No related merge requests found
......@@ -75,14 +75,14 @@ impl fmt::Display for NsFormatter {
}
if self.0 < 1_000_000 {
return write!(f, "{:.2} ms", v as f64 / 1_000_000.0)
return write!(f, "{:.4} ms", v as f64 / 1_000_000.0)
}
if self.0 < 100_000_000 {
return write!(f, "{} ms", v as f64 / 1_000_000.0)
return write!(f, "{:.1} ms", v as f64 / 1_000_000.0)
}
write!(f, "{:.2} s", v as f64 / 1_000_000_000.0)
write!(f, "{:.4} s", v as f64 / 1_000_000_000.0)
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment