Benchmark result in microseconds
This commit is contained in:
@@ -92,11 +92,11 @@ impl std::fmt::Display for BenchmarkResult {
|
|||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"- Average: {} ns\n\
|
"- Average: {} µs\n\
|
||||||
- Min: {} ns\n\
|
- Min: {} µs\n\
|
||||||
- Max: {} ns\n\
|
- Max: {} µs\n\
|
||||||
- Total Render: {} ns\n\
|
- Total Render: {} µs\n\
|
||||||
- Total: {} ns",
|
- Total: {} µs",
|
||||||
self.average, self.min, self.max, self.total_render, self.total
|
self.average, self.min, self.max, self.total_render, self.total
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user