Sleep

Signature

void sleep(u64 time)

Description

Pauses the execution of the current thread for the specified time-out interval.

Arguments

Time

The duration of the pause in milliseconds.

A value of 0 allows the thread to yield its remaining time slice to any ready-to-run threads.

If no other threads are ready, the function returns immediately, and the thread resumes execution.

Last updated