Sleeping services.
More...
#include <Radiant/Sleep.hpp>
Sleeping services.
This class contains only static member functions.
| static void Radiant::Sleep::sleepMs |
( |
uint32_t |
msecs | ) |
|
|
static |
Sleep for n milliseconds.
- Parameters
-
| msecs | Number of milliseconds to sleep |
| static void Radiant::Sleep::sleepS |
( |
uint32_t |
secs | ) |
|
|
static |
Sleep for n seconds.
- Parameters
-
| secs | Number of seconds to sleep |
| static void Radiant::Sleep::sleepUs |
( |
uint64_t |
usecs | ) |
|
|
static |
Sleep for n microseconds.
The resolution of this function is unlikely to be better than one millisecond on any platform, even if the underlying APIs might imply this.
- Parameters
-
| usecs | Number of microseconds to sleep |