# sleep {#sleep}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`sleep(X)`

## Arguments {#arguments}

**X** is a non-negative scalar.

## Details {#details}

Pause the application for *X* milliseconds.

## Examples {#examples}

```
for(s in 1:10){
   sleep(1000)
   print(s+" seconds passed.")
};

/* output:
1 seconds passed.
2 seconds passed.
3 seconds passed.
4 seconds passed.
5 seconds passed.
6 seconds passed.
7 seconds passed.
8 seconds passed.
9 seconds passed.
*/
```

