41 lines · 745 B · Text
RawDownload
.TH DELAY 9.SH NAMEdelay, microdelay, addclock0link \- small delays, clock interrupts.SH SYNOPSIS.ta \w'\fLvoid 'u.Bvoid	delay(int n).PP.Bvoid	microdelay(int n).PP.Bvoid	addclock0link(void(*clockf)(void)).SH DESCRIPTION.I Delaybusy waits for.I nmilliseconds, forced to be at least one millisecond..PP.I Microdelayis similar, but busy waits for.I nmicroseconds..PPFor delays on the order of clock ticks,.I tsleep(see.IR sleep (9))provides a better alternative to the busy waiting of these routines..PP.I Addclock0linkadds.I clockfto a list of functions to be executed at each clock interrupt onthe first processor..SH SOURCE.B /sys/src/9/port/portclock.c.br.B /sys/src/9/*/clock.c.SH SEE ALSO.IR sleep (9)