Pyrogenesis  trunk
Public Member Functions | List of all members
CounterTGT Class Reference
Inheritance diagram for CounterTGT:
Inheritance graph
[legend]
Collaboration diagram for CounterTGT:
Collaboration graph
[legend]

Public Member Functions

virtual const char * Name () 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 ()
 

Member Function Documentation

Status CounterTGT::Activate ( )
inlinevirtual

Implements ICounter.

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

Implements ICounter.

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.

bool CounterTGT::IsSafe ( ) const
inlinevirtual

Implements ICounter.

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

Implements ICounter.

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.

double CounterTGT::Resolution ( ) const
inlinevirtual

actual resolution [s].

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

Implements ICounter.

void CounterTGT::Shutdown ( )
inlinevirtual

Implements ICounter.


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