Line data Source code
1 : #include "Timer.h" 2 : 3 : namespace elsa 4 : { 5 : Timer::Timer(std::string caller, std::string method) 6 : : _caller{std::move(caller)}, _method{std::move(method)} 7 48380 : { 8 48380 : } 9 : 10 48380 : Timer::~Timer() { Logger::get(_caller)->debug("{} took {:.3}s", _method, _watch); } 11 : } // namespace elsa