DELAY(9) DELAY(9) NAME delay, microdelay, addclock0link - small delays, clock interrupts SYNOPSIS void delay(int n) void microdelay(int n) void addclock0link(void(*clockf)(void)) DESCRIPTION Delay busy waits for n milliseconds, forced to be at least one millisecond. Microdelay is similar, but busy waits for n microseconds. For delays on the order of clock ticks, tsleep (see sleep(9)) provides a better alternative to the busy waiting of these routines. Addclock0link adds clockf to a list of functions to be exe- cuted at each clock interrupt on the first processor. SOURCE /sys/src/9/port/portclock.c /sys/src/9/*/clock.c SEE ALSO sleep(9) Page 1 Plan 9 (printed 12/21/24)