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

Public Member Functions

 CounterPMT ()
 
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 ()
 

Private Attributes

u16 m_portAddress
 

Constructor & Destructor Documentation

CounterPMT::CounterPMT ( )
inline

Member Function Documentation

Status CounterPMT::Activate ( )
inlinevirtual

Implements ICounter.

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

Implements ICounter.

size_t CounterPMT::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 CounterPMT::IsSafe ( ) const
inlinevirtual

Implements ICounter.

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

Implements ICounter.

double CounterPMT::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 CounterPMT::Resolution ( ) const
inlinevirtual

actual resolution [s].

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

Implements ICounter.

void CounterPMT::Shutdown ( )
inlinevirtual

Implements ICounter.

Member Data Documentation

u16 CounterPMT::m_portAddress
private

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