Public Member Functions | Protected Attributes

Clock Class Reference

A clock returns the time in different time domains. More...

#include <timer.h>

List of all members.

Public Member Functions

timevalue time ()
timevalue clock (timevalue freq)
 Returns the current clock in freq-time.
timevalue freq ()
 Frequency of the clock.
timevalue abstime (timevalue thedelta, timevalue freq)
 Returns a timeout in absolute TSC time.
timevalue delta (timevalue theabstime, timevalue freq)
 Returns a delta in another frequency domain from an absolute TSC value.
 Clock (timevalue source_freq)

Protected Attributes

timevalue _source_freq

Detailed Description

A clock returns the time in different time domains.

The reference clock is the CPUs TSC.


Constructor & Destructor Documentation

Clock::Clock ( timevalue  source_freq  )  [inline]

Member Function Documentation

timevalue Clock::abstime ( timevalue  thedelta,
timevalue  freq 
) [inline]

Returns a timeout in absolute TSC time.

timevalue Clock::clock ( timevalue  freq  )  [inline]

Returns the current clock in freq-time.

timevalue Clock::delta ( timevalue  theabstime,
timevalue  freq 
) [inline]

Returns a delta in another frequency domain from an absolute TSC value.

timevalue Clock::freq (  )  [inline]

Frequency of the clock.

timevalue Clock::time (  )  [inline]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines