We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d119f5 commit 9a875a8Copy full SHA for 9a875a8
src/cargo/core/compiler/timings/report.rs
@@ -381,8 +381,8 @@ pub(super) fn to_unit_data(
381
mode,
382
target: ut.target.clone(),
383
features: ut.unit.features.iter().map(|f| f.to_string()).collect(),
384
- start: round(ut.start),
385
- duration: round(ut.duration),
+ start: round_to_centisecond(ut.start),
+ duration: round_to_centisecond(ut.duration),
386
unblocked_units,
387
unblocked_rmeta_units,
388
sections,
@@ -468,7 +468,7 @@ fn aggregate_sections(unit_time: &UnitTime) -> AggregatedSections {
468
}
469
470
/// Rounds seconds to 0.01s precision.
471
-fn round(x: f64) -> f64 {
+fn round_to_centisecond(x: f64) -> f64 {
472
(x * 100.0).round() / 100.0
473
474
0 commit comments