[#BloombergLP-bslmt-ThreadUtil-sleep-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::sleep
:relfileprefix: ../../../
:mrdocs:

Suspend the current thread for at least the specified relative time&period;

== Synopses

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

Suspend the current thread for at least the specified relative time&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bslmt/ThreadUtil/sleep-0e.adoc[sleep](xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& sleepTime);
----

[.small]#xref:BloombergLP/bslmt/ThreadUtil/sleep-0e.adoc[_» more&period;&period;&period;_]#

Suspend the current thread for at least the specified relative time&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class REP&lowbar;TYPE,
    class PERIOD&lowbar;TYPE&gt;
static
void
xref:BloombergLP/bslmt/ThreadUtil/sleep-00.adoc[sleep](bsl::chrono::duration&lt;REP&lowbar;TYPE, PERIOD&lowbar;TYPE&gt; const& sleepTime);
----

[.small]#xref:BloombergLP/bslmt/ThreadUtil/sleep-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sleepTime*
| minimum relative duration to sleep
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
