# Sleep / Wait

> Pause the flow for a specified duration.

- ID: `sleep_wait`
- Type: Block
- Category: [Time](https://inventor.bot/docs/reference/blocks/time.md)

> Duration is a sequence of numbers with unit suffix (s, m, h). Examples: "5s", "30s", "1m30s". Plain numbers are treated as seconds.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `duration` | yes | How long to sleep (e.g. 5s, 1m, 30s). Plain numbers are treated as seconds. | e.g. `"5s"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `slept_seconds` | Actual number of seconds the block slept. | e.g. `"5"` |
| `slept_milliseconds` | Actual number of milliseconds the block slept. | e.g. `"5000"` |

**Example**

```go
sleepWait := sleep_wait(Args{duration: "5s"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Slept (Seconds): " + sleepWait.slept_seconds,
})
```