LCOV - code coverage report
Current view: top level - elsa/logging - Timer.cpp (source / functions) Hit Total Coverage
Test: coverage-all.lcov Lines: 3 3 100.0 %
Date: 2022-08-25 03:05:39 Functions: 2 2 100.0 %

          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

Generated by: LCOV version 1.14