Skip to content

Commit

Permalink
Simplify code showing timers in generalization code
Browse files Browse the repository at this point in the history
No reason to use dynamically created format strings here.
  • Loading branch information
joto committed Sep 16, 2024
1 parent 0b3271e commit 9f6aaac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gen/osm2pgsql-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,9 @@ class genproc_t

log_debug("Timers:");
for (auto const &timer : generalizer->timers()) {
log_debug(fmt::format(
" {:10} {:>10L}", timer.name() + ":",
std::chrono::duration_cast<std::chrono::milliseconds>(
timer.elapsed())));
log_debug(" {:10} {:>10L}", timer.name() + ":",
std::chrono::duration_cast<std::chrono::milliseconds>(
timer.elapsed()));
}
log_info("Finished generalizer '{}' in {}.", generalizer->name(),
util::human_readable_duration(timer_gen.stop()));
Expand Down

0 comments on commit 9f6aaac

Please sign in to comment.