Suspend the current thread for at least the specified relative time.
Synopses
Declared in <bslmt_threadutil.h>
Suspend the current thread for at least the specified relative time.
static
void
sleep(bsls::TimeInterval const& sleepTime);
Suspend the current thread for at least the specified relative time.
template<
class REP_TYPE,
class PERIOD_TYPE>
static
void
sleep(bsl::chrono::duration<REP_TYPE, PERIOD_TYPE> const& sleepTime);
Parameters
Name |
Description |
sleepTime |
minimum relative duration to sleep |
Created with MrDocs