Sleep
Suspends execution of the current thread.
Module: Windows
Microsoft documentation: Sleep
Signature
rux
func Sleep(milliseconds: uint32);Parameters
| Name | Type | Description |
|---|---|---|
milliseconds | uint32 | Minimum suspension interval. |
The actual delay depends on system timer resolution and scheduling. A value of 0 yields the remainder of the thread's time slice to another ready thread.
See also
Process and thread— process API overview