---
title: IOSleep
framework: driverkit
role: symbol
role_heading: Function
path: driverkit/iosleep
---

# IOSleep

Sleep the calling thread for a number of milliseconds.

## Declaration

```occ
void IOSleep(uint64_t ms);
```

## Parameters

- `ms`: The integer number of milliseconds to wait.

## Discussion

Discussion This function blocks the calling thread for at least the number of specified milliseconds, giving time to other processes.

## See Also

### Thread Utilities

- [IODelay](driverkit/iodelay.md)
