Documentation

sleep

Function

void sleep(uint64 ms)

Yields the current execution for a given period of time. Execution will be resumed after that time.

uint64 ms

The number of milliseconds to yield for. For backwards compatibility reasons, passing 0 here will yield for exactly 1 frame.