# OS_SpinWait

## C Specification

`#include <nitro/os.h>
`void OS_SpinWait( u32 cycles );``

## Description

This function makes the CPU run empty loops for at least the number of cycles specified by `cycles`.

This function only causes empty loop processing. Therefore, be aware that the return time from this function may be greatly delayed by interrupts that are generated during the loops.

Because of function calls and other overhead, return from this function might be delayed slightly more than the specified number of cycles.

## Arguments

cycles | The number of cycles to wait (CPU cycles)

## Return Values

None

## See Also

`SVC_WaitByLoop()`

## Revision History

02/27/2004 Initial Version