Avoid printing dry run timings

This commit is contained in:
Mark Rousskov 2020-09-15 08:59:34 -04:00
parent 90b1f5ae59
commit 5f3145febd

View File

@ -1421,7 +1421,7 @@ pub fn ensure<S: Step>(&'a self, step: S) -> S::Output {
(out, dur - deps)
};
if self.config.print_step_timings {
if self.config.print_step_timings && !self.config.dry_run {
println!("[TIMING] {:?} -- {}.{:03}", step, dur.as_secs(), dur.subsec_millis());
}