# sleep statement

The sleep statement places a process
to sleep for a specific number of seconds, or, until a specific time.

**Synonyms:** rqm

## Syntax

```
sleep {num.exp}
sleep {"time.exp"}
```

## Parameter(s)

| num.exp | Time to sleep in seconds. |
| --- | --- |
| time.exp | Time to sleep in military time format (hh:mm:ss). |

## Description

If no argument is included,
the process sleeps for one second. rqm and sleep are identical.

The specification of fractional
seconds in the numeric expression is allowed. Also, a numeric expression
of 0 causes the process to relinquish its time slice.

## Example(s)

This puts the process to sleep
for one hour.

```
sleep 3600
```
This puts the process to sleep, leaving a wakeup call
for 8:00 AM.

```
until.wakeup.time = "08:00"
sleep until.wakeup.time
```

## See also

- [rqm statement](https://d3codex.com/pickbasic-flashbasic/rqm-statement/)
- [set-bootsleep command](https://d3codex.com/tcl/set-bootsleep-command/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [u307a user exit](https://d3codex.com/pickbasic-flashbasic/u307a-user-exit/)
- [u407a user exit](https://d3codex.com/pickbasic-flashbasic/u407a-user-exit/)

---
Source: https://d3codex.com/pickbasic-flashbasic/sleep-statement/ - part of the D3Codex reference.
