MCPcopy Create free account
hub / github.com/cvanaret/Uno / Timer

Method Timer

uno/tools/Timer.cpp:10–11  ·  view source on GitHub ↗

timer starts upon creation

Source from the content-addressed store, hash-verified

8namespace 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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected