MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / Timer

Method Timer

src/util/Timer.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "Timer.h"
6
7Timer::Timer() : time_elapsed(0), system_milliseconds(0), start_time(0), end_time(0), last_update(0), num_updates(0), paused_time(0), offset(0), paused_state(false), lock_state(false), lock_rate(0)
8{
9#ifdef _WIN32
10 // According to Microsoft, QueryPerformanceXXX API is perfectly
11 //fine for Windows 7+ systems, and use the highest appropriate counter.
12 //this only need to be done once.
13 ::QueryPerformanceFrequency(&win_frequency);
14#endif
15}
16
17
18void Timer::start()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected