Time functions.
Namespace: | dmTime |
Include: | #include <dmsdk/dlib/time.h> |
FUNCTIONS | |
---|---|
uint64_t dmTime::GetMonotonicTime() | get monotonic time in microseconds |
uint64_t dmTime::GetTime() | get current time in microseconds |
void dmTime::Sleep( useconds) | sleep thread with low precision (~10 milliseconds). |
uint64_t dmTime::GetMonotonicTime()
Get monotonic time in microseconds since some unspecified starting point.
PARAMETERS
RETURNS
uint64_t |
Monotonic time in microseconds |
uint64_t dmTime::GetTime()
Get current time in microseconds since Jan. 1, 1970.
PARAMETERS
RETURNS
uint64_t |
Current time in microseconds |
void dmTime::Sleep( useconds)
Sleep thread with low precision (~10 milliseconds).
PARAMETERS
|
useconds |
Time to sleep in microseconds |