> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AR Osal Sleep

> This file contains APIs to suspend thread execution for the required duration.

**Header:** `ar_osal/api/ar_osal_sleep.h`

## Functions

### `ar_osal_micro_sleep`

Micro second sleep function.

Sleep internal may not be accurate as requested, it would vary based on resolution of system clock ticks. Note that a ready thread is not guaranteed to run immediately. Consequently, the thread may not run until some time after the sleep interval elapses.

```cpp theme={null}
int32_t ar_osal_micro_sleep(uint64_t micro_seconds)
```

**Parameters**

<ParamField path="micro_seconds" type="uint64_t">
  sleep duration in micro seconds.
</ParamField>

**Returns**

0  Success Nonzero  Failure
