diff --git a/src/timer.cc b/src/timer.cc index 8c81596..f268eaa 100644 --- a/src/timer.cc +++ b/src/timer.cc @@ -6,7 +6,7 @@ namespace utl { scoped_timer::scoped_timer(std::string name) : name_{std::move(name)}, start_{std::chrono::steady_clock::now()} { - utl::log_info("scoped_timer", "[{}] starting", name); + utl::log_info("scoped_timer", "[{}] starting", name_); } scoped_timer::~scoped_timer() { @@ -50,4 +50,4 @@ void manual_timer::print(std::string_view const message) const { utl::log_info("scoped_timer", "[{}] {} ({}ms)", name_, message, t); } -} // namespace utl \ No newline at end of file +} // namespace utl