NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
A clock returns the time in different time domains. More...
#include <timer.h>
Public Member Functions | |
timevalue | time () |
timevalue | clock (timevalue freq, timevalue t_cur=0) |
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.
|
inline |
Returns a timeout in absolute TSC time.
thedelta | The timeout |
freq | Scale of thedelta |
The timeout equals to thedelta/freq seconds.
Example: abstime(5, 1000) returns the time of now plus 5 milliseconds.
Returns the current clock in freq-time.
Returns a delta in another frequency domain from an absolute TSC value.
|
inline |
Frequency of the clock.
|
inline |
|
protected |