Skip to content

Commit

Permalink
Merge pull request #2248 from joto/refactor-timer-debug
Browse files Browse the repository at this point in the history
Simplify code showing timers in generalization code
  • Loading branch information
lonvia authored Sep 17, 2024
2 parents 4e55c79 + 9f6aaac commit 8a96b76
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 8a96b76

Please sign in to comment.