You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== sleep ==
[[../objects/ms.lang.InterruptedException|ms.lang.InterruptedException]] |- ! scope="row" | Since | 3.1.0 |- ! scope="row" | Restricted |
Sleeps the script for the specified number of seconds, up to the maximum time limit defined in the preferences file. Seconds may be a double value, so 0.5 would be half a second. If the "interrupt status" is true then throw InterruptedException PLEASE NOTE: Sleep times are NOT very accurate, and should not be relied on for preciseness.
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| sleep
|-
! scope="row" | Returns
| void
|-
! scope="row" | Usages
| seconds
|-
! scope="row" | Throws
| [[../objects/ms.lang.CastException|ms.lang.CastException]][[../objects/ms.lang.InterruptedException|ms.lang.InterruptedException]] |- ! scope="row" | Since | 3.1.0 |- ! scope="row" | Restricted |
Yes
|-
! scope="row" | Optimizations
| None
|}
=== Usages ===
sleep(seconds)=== Examples === Sorry, there are no examples for this function! :( ===See Also===
[[API/functions/x_interrupt.html|x_interrupt]]
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)