sleep
| Number | 0x05 |
|---|---|
| Signature | (ms) -> 0 |
| Group | task |
| Since | 1.0 |
| Blocking | true |
Block the calling thread for a fixed duration. Other threads in the process continue to run.
Durations are measured in scheduler ticks, so the real sleep is rounded up to whole ticks;
a sub-tick duration sleeps one tick rather than returning immediately. There is no infinite
form (use a blocking recv/wait for that) and no polling form.
Arguments
| Register | Name | Description |
|---|---|---|
r0 | ms | Duration in milliseconds |
Returns
0.