lib.sysdep.win.whrt
Class CounterQPC
boost::noncopyable
|
+--ICounter
|
+--CounterQPC
in qpc.h
in qpc.cpp
- class CounterQPC
- extends ICounter
=========================================================================
File : qpc.h
Project : 0 A.D.
Description : Timer implementation using QueryPerformanceCounter
=========================================================================
Method Summary |
virtual LibError |
Activate()
=========================================================================
File : qpc. |
virtual u64 |
Counter() const
|
virtual uint |
CounterBits() const
WHRT uses this to ensure the counter (running at nominal frequency)
doesn't overflow more than once during CALIBRATION_INTERVAL_MS. |
virtual bool |
IsSafe() const
|
virtual const char* |
Name() const
|
virtual double |
NominalFrequency() const
initial measurement of the tick rate. |
virtual void |
Shutdown()
|
m_frequency
private i64 m_frequency;
CounterQPC
public CounterQPC();
Activate
public virtual LibError Activate();
- =========================================================================
File : qpc.cpp
Project : 0 A.D.
Description : Timer implementation using QueryPerformanceCounter
=========================================================================
Counter
public virtual u64 Counter() const;
CounterBits
public virtual uint CounterBits() const;
- WHRT uses this to ensure the counter (running at nominal frequency)
doesn't overflow more than once during CALIBRATION_INTERVAL_MS.
IsSafe
public virtual bool IsSafe() const;
Name
public virtual const char* Name() const;
NominalFrequency
public virtual double NominalFrequency() const;
- initial measurement of the tick rate. not necessarily correct
(e.g. when using TSC: wcpu_ClockFrequency isn't exact).
Shutdown
public virtual void Shutdown();