MCPcopy Create free account
hub / github.com/comaps/comaps / ~ScopedTimerWithLog

Method ~ScopedTimerWithLog

libs/base/timer.cpp:179–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177{}
178
179ScopedTimerWithLog::~ScopedTimerWithLog()
180{
181 switch (m_measure)
182 {
183 case Measure::MilliSeconds:
184 {
185 LOG(LINFO, (m_name, "time:", m_timer.ElapsedMilliseconds(), "ms"));
186 return;
187 }
188 case Measure::Seconds:
189 {
190 LOG(LINFO, (m_name, "time:", m_timer.ElapsedSeconds(), "s"));
191 return;
192 }
193 }
194 UNREACHABLE();
195}
196} // namespace base

Callers

nothing calls this directly

Calls 2

ElapsedMillisecondsMethod · 0.80
ElapsedSecondsMethod · 0.80

Tested by

no test coverage detected