A clock returns the time in different time domains. More...
#include <timer.h>
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 |
A clock returns the time in different time domains.
The reference clock is the CPUs TSC.
Clock::Clock | ( | timevalue | source_freq | ) | [inline] |
Returns a timeout in absolute TSC time.
Returns a delta in another frequency domain from an absolute TSC value.
timevalue Clock::freq | ( | ) | [inline] |
Frequency of the clock.
timevalue Clock::time | ( | ) | [inline] |
timevalue Clock::_source_freq [protected] |