Skip to content

Commit b69afe7

Browse files
authored
Merge pull request #1758 from Kobzol/collector-precise-log
Use more precise timings in collector preparation/benchmark logs
2 parents f7ebcf6 + 6303c68 commit b69afe7

File tree

1 file changed

+4
-4
lines changed
  • collector/src/compile/benchmark

1 file changed

+4
-4
lines changed

collector/src/compile/benchmark/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ impl Benchmark {
325325
Ok(())
326326
})?;
327327
log::trace!(
328-
"preparing {} took {} seconds",
328+
"preparing {} took {:.3} seconds",
329329
self.name,
330-
preparation_start.elapsed().as_secs()
330+
preparation_start.elapsed().as_secs_f64()
331331
);
332332

333333
let benchmark_start = std::time::Instant::now();
@@ -416,9 +416,9 @@ impl Benchmark {
416416
}
417417
}
418418
log::trace!(
419-
"benchmarking {} took {} seconds",
419+
"benchmarking {} took {:.3} seconds",
420420
self.name,
421-
benchmark_start.elapsed().as_secs()
421+
benchmark_start.elapsed().as_secs_f64()
422422
);
423423

424424
Ok(())

0 commit comments

Comments
 (0)