Suspend the current thread for at least the specified duration.
Synopsis
Declared in <bslmt_threadutil.h>
static
void
microSleep(
int microseconds,
int seconds = 0);
Description
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.
Parameters
Name |
Description |
microseconds |
additional microseconds to sleep |
seconds |
seconds to sleep; defaults to 0 |
Created with MrDocs