BloombergLP::bslmt::ThreadUtil::microSleep

Suspend execution of the current thread for a period of at least the specified microseconds and the optionally specified seconds (relative time), or an interrupting signal is received. Note that the actual time suspended depends on many factors including system scheduling and system timer resolution, and may be significantly longer than the time requested.

Synopsis

Declared in <bslmt_threadutil.h>

static
void
microSleep(
    int microseconds,
    int seconds = 0);