LCOV - code coverage report
Current view: top level - elsa/logging - Timer.cpp (source / functions) Hit Total Coverage
Test: coverage-all.lcov Lines: 5 5 100.0 %
Date: 2024-12-21 07:37:52 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       17029 :     {
       8       17029 :     }
       9             : 
      10             :     Timer::~Timer()
      11       17029 :     {
      12       17029 :         Logger::get(_caller)->debug("{} took {:.3}s", _method, _watch);
      13       17029 :     }
      14             : } // namespace elsa

Generated by: LCOV version 1.14