Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
additive features
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-chuang committed Sep 11, 2020
1 parent e5cb574 commit 3ed5d9f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions algebra-core/src/timing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ macro_rules! timer_println {
};

if !blacklisted && whitelisted_parents {
if cfg!(feature = "timing") {
let std_info = format!("[{:^28}] {} us", $string, elapsed);
#[cfg(feature = "timing_thread_id")]
let std_info =
format!("{:25} {}", format!("(tid: {})", thread_id::get()), std_info);
println!("{}", std_info);
}

if cfg!(feature = "timing_detailed") {
let std_info = format!(
"{:30} {:26} [{:^28}] {} us",
Expand All @@ -109,7 +101,15 @@ macro_rules! timer_println {
let std_info =
format!("{:25} {}", format!("(tid: {})", thread_id::get()), std_info);
println!("{}", std_info);
} else if cfg!(feature = "timing") {
let std_info = format!("[{:^28}] {} us", $string, elapsed);
#[cfg(feature = "timing_thread_id")]
let std_info =
format!("{:25} {}", format!("(tid: {})", thread_id::get()), std_info);
println!("{}", std_info);
}


}
}
}
Expand Down

0 comments on commit 3ed5d9f

Please sign in to comment.