From 9f6aaac4fb7eab0aac432504c16b8e64305c2cac Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 16 Sep 2024 16:33:13 +0200 Subject: [PATCH] Simplify code showing timers in generalization code No reason to use dynamically created format strings here. --- src/gen/osm2pgsql-gen.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gen/osm2pgsql-gen.cpp b/src/gen/osm2pgsql-gen.cpp index 7ec3634fa..afbb0f80d 100644 --- a/src/gen/osm2pgsql-gen.cpp +++ b/src/gen/osm2pgsql-gen.cpp @@ -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( - timer.elapsed()))); + log_debug(" {:10} {:>10L}", timer.name() + ":", + std::chrono::duration_cast( + timer.elapsed())); } log_info("Finished generalizer '{}' in {}.", generalizer->name(), util::human_readable_duration(timer_gen.stop()));