Definition at line 39 of file qpc.cpp.
CounterQPC::CounterQPC |
( |
| ) |
|
|
inline |
Status CounterQPC::Activate |
( |
| ) |
|
|
inlinevirtual |
u64 CounterQPC::Counter |
( |
| ) |
const |
|
inlinevirtual |
size_t CounterQPC::CounterBits |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- the bit width of the counter (<= 64) WHRT uses this to ensure the counter (running at nominal frequency) doesn't overflow more than once during CALIBRATION_INTERVAL_MS.
Implements ICounter.
Definition at line 128 of file qpc.cpp.
bool CounterQPC::IsSafe |
( |
| ) |
const |
|
inlinevirtual |
virtual const wchar_t* CounterQPC::Name |
( |
| ) |
const |
|
inlinevirtual |
double CounterQPC::NominalFrequency |
( |
| ) |
const |
|
inlinevirtual |
initial measurement of the tick rate.
not necessarily correct (e.g. when using TSC: os_cpu_ClockFrequency isn't exact).
Implements ICounter.
Definition at line 137 of file qpc.cpp.
double CounterQPC::Resolution |
( |
| ) |
const |
|
inlinevirtual |
actual resolution [s].
differs from 1/NominalFrequency if the timer adjustment is greater than 1 tick.
Implements ICounter.
Definition at line 142 of file qpc.cpp.
void CounterQPC::Shutdown |
( |
| ) |
|
|
inlinevirtual |
i64 CounterQPC::m_frequency |
|
private |
The documentation for this class was generated from the following file:
- /home/sathyam/0ad.svn/source/lib/sysdep/os/win/whrt/qpc.cpp