Skip to content

Commit

Permalink
Change precision, add units on output times.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorHansen committed Aug 14, 2023
1 parent 3780c97 commit d56f994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ impl EGraph {
for (name, rule) in vec.iter().rev().take(5) {
write!(
msg,
"{name}\n Search: {}\n Apply: {}\n",
"{name}\n Search: {:.3}s\n Apply: {:.3}s\n",
rule.search_time.as_secs_f64(),
rule.apply_time.as_secs_f64()
)
Expand Down Expand Up @@ -685,7 +685,7 @@ impl EGraph {
});
let rule_search_time = rule_search_start.elapsed();
log::trace!(
"Searched for {name} in {} ({} results)",
"Searched for {name} in {:.3}s ({} results)",
rule_search_time.as_secs_f64(),
all_values.len()
);
Expand Down

0 comments on commit d56f994

Please sign in to comment.