Skip to content

Commit

Permalink
Small change to time prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlamonster committed Dec 6, 2023
1 parent 32835f9 commit 01e6a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/utils/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static TIME: Lazy<Mutex<Time>> = Lazy::new(|| Mutex::new(Time::new()));
pub fn time_init() {
#[cfg(feature = "time")]
{
println!("{:>12} {:>12} {:>12}", "pass", "since prev", "since init");
println!("{:>12} {:>12} {:>12}", "pass", "since prev", "since init");
Lazy::force(&TIME);
}
}
Expand All @@ -44,6 +44,6 @@ pub fn time(pass: &str) {
let since_init = now.duration_since(time.init);
let since_prev = now.duration_since(time.prev);
time.prev = now;
println!("{pass:>12}: {since_prev:>#12?} {since_init:>#12?}");
println!("{pass:>12} {since_prev:>#12?} {since_init:>#12?}");
}
}

0 comments on commit 01e6a7a

Please sign in to comment.