[#CThreadInterrupt-sleep_for] = xref:CThreadInterrupt.adoc[CThreadInterrupt]::sleep_for :relfileprefix: ../ :mrdocs: Sleep for the given duration, returning early if interrupted. == Synopsis Declared in `<util/threadinterrupt.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool sleep_for(Clock::duration rel_time); ---- == Return Value true if the full duration elapsed, false if the sleep was interrupted. == Parameters [cols="1,4"] |=== | Name| Description | *rel_time* | The duration to sleep for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#