Access of the system clock so called wall time.
More...
#include <TimerUtil.hpp>
Access of the system clock so called wall time.
◆ currentTime()
static double currentTime |
( |
| ) |
|
|
static |
Returns system clock in seconds.
- Warning
- The date/time at which this timer counts from is platform-specific, so you should not use it for getting the calendar time. It's really only meant for calculating wall time differences.
◆ currentTimeMs()
static long long currentTimeMs |
( |
| ) |
|
|
static |
Returns system clock in milli-seconds.
- Warning
- The date/time at which this timer counts from is platform-specific, so you should not use it for getting the calendar time. It's really only meant for calculating wall time differences.
◆ currentTimeUs()
static long long currentTimeUs |
( |
| ) |
|
|
static |
Returns system clock in micro-seconds.
- Warning
- The date/time at which this timer counts from is platform-specific, so you should not use it for getting the calendar time. It's really only meant for calculating wall time differences.
Notice: The timer cannot hold times longer than approx. 2100second.
◆ sleepMs()
static void sleepMs |
( |
int |
period | ) |
|
|
static |
Sleeps for a period of time.
- Parameters
-
period | [in] the time in miliseconds to sleep |
◆ sleepUs()
static void sleepUs |
( |
int |
period | ) |
|
|
static |
Sleeps for a period of time.
- Parameters
-
period | [in] the time in microseconds to sleep |
The documentation for this class was generated from the following file: