timer starts upon creation
| 8 | namespace uno { |
| 9 | // timer starts upon creation |
| 10 | Timer::Timer(): start_time(std::clock()) { |
| 11 | } |
| 12 | |
| 13 | double Timer::get_duration() const { |
| 14 | return static_cast<double>(std::clock() - this->start_time) / static_cast<double>(CLOCKS_PER_SEC); |
nothing calls this directly
no outgoing calls
no test coverage detected