Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
CounterTSC Class Reference
Inheritance diagram for CounterTSC:
ICounter

Public Member Functions

virtual const wchar_tName () const
 
Status Activate ()
 
void Shutdown ()
 
bool IsSafe () const
 
u64 Counter () const
 
size_t CounterBits () const
 
double NominalFrequency () const
 initial measurement of the tick rate. More...
 
double Resolution () const
 actual resolution [s]. More...
 
- Public Member Functions inherited from ICounter
virtual ~ICounter ()
 

Detailed Description

Definition at line 126 of file tsc.cpp.

Member Function Documentation

Status CounterTSC::Activate ( )
inlinevirtual

Implements ICounter.

Definition at line 134 of file tsc.cpp.

u64 CounterTSC::Counter ( ) const
inlinevirtual
Returns
the current value of the counter (all but the lower CounterBits() bits must be zero)

Implements ICounter.

Definition at line 217 of file tsc.cpp.

size_t CounterTSC::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 222 of file tsc.cpp.

bool CounterTSC::IsSafe ( ) const
inlinevirtual

Implements ICounter.

Definition at line 148 of file tsc.cpp.

virtual const wchar_t* CounterTSC::Name ( ) const
inlinevirtual

Implements ICounter.

Definition at line 129 of file tsc.cpp.

double CounterTSC::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 227 of file tsc.cpp.

double CounterTSC::Resolution ( ) const
inlinevirtual

actual resolution [s].

differs from 1/NominalFrequency if the timer adjustment is greater than 1 tick.

Implements ICounter.

Definition at line 249 of file tsc.cpp.

void CounterTSC::Shutdown ( )
inlinevirtual

Implements ICounter.

Definition at line 144 of file tsc.cpp.


The documentation for this class was generated from the following file: