Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
CounterTGT Class Reference
Inheritance diagram for CounterTGT:
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 49 of file tgt.cpp.

Member Function Documentation

Status CounterTGT::Activate ( )
inlinevirtual

Implements ICounter.

Definition at line 57 of file tgt.cpp.

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

Implements ICounter.

Definition at line 81 of file tgt.cpp.

size_t CounterTGT::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 86 of file tgt.cpp.

bool CounterTGT::IsSafe ( ) const
inlinevirtual

Implements ICounter.

Definition at line 72 of file tgt.cpp.

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

Implements ICounter.

Definition at line 52 of file tgt.cpp.

double CounterTGT::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 91 of file tgt.cpp.

double CounterTGT::Resolution ( ) const
inlinevirtual

actual resolution [s].

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

Implements ICounter.

Definition at line 96 of file tgt.cpp.

void CounterTGT::Shutdown ( )
inlinevirtual

Implements ICounter.

Definition at line 67 of file tgt.cpp.


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