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

Public Member Functions

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

Private Attributes

u16 m_portAddress
 

Detailed Description

Definition at line 42 of file pmt.cpp.

Constructor & Destructor Documentation

CounterPMT::CounterPMT ( )
inline

Definition at line 45 of file pmt.cpp.

Member Function Documentation

Status CounterPMT::Activate ( )
inlinevirtual

Implements ICounter.

Definition at line 55 of file pmt.cpp.

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

Implements ICounter.

Definition at line 83 of file pmt.cpp.

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.

Definition at line 88 of file pmt.cpp.

bool CounterPMT::IsSafe ( ) const
inlinevirtual

Implements ICounter.

Definition at line 72 of file pmt.cpp.

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

Implements ICounter.

Definition at line 50 of file pmt.cpp.

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.

Definition at line 97 of file pmt.cpp.

double CounterPMT::Resolution ( ) const
inlinevirtual

actual resolution [s].

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

Implements ICounter.

Definition at line 102 of file pmt.cpp.

void CounterPMT::Shutdown ( )
inlinevirtual

Implements ICounter.

Definition at line 68 of file pmt.cpp.

Member Data Documentation

u16 CounterPMT::m_portAddress
private

Definition at line 108 of file pmt.cpp.


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