All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Radiant::Sleep Class Reference

Sleeping services. More...

#include <Radiant/Sleep.hpp>

Static Public Member Functions

static void sleepMs (uint32_t msecs)
 Sleep for n milliseconds. More...
 
static void sleepS (uint32_t secs)
 Sleep for n seconds. More...
 
static void sleepUs (uint64_t usecs)
 Sleep for n microseconds. More...
 

Detailed Description

Sleeping services.

This class contains only static member functions.

Member Function Documentation

static void Radiant::Sleep::sleepMs ( uint32_t  msecs)
static

Sleep for n milliseconds.

Parameters
msecsNumber of milliseconds to sleep
static void Radiant::Sleep::sleepS ( uint32_t  secs)
static

Sleep for n seconds.

Parameters
secsNumber 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
usecsNumber of microseconds to sleep