# sleep

Description: sleep cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/External/sleep.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function sleep(uint256 milliseconds) external;
```

### Description

Sleeps for a given amount of milliseconds.

### Examples

```solidity
vm.sleep(10_000); // Halts execution for 10 seconds
```
