.TH DELAY 10.2.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.IR nmicroseconds..PPFor delays on the order of clock ticks,.I tsleep(see.IR sleep (10.2))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..SH SEE ALSO.IR sleep (10.2)
.TH DELAY 10.2
.SH NAME
delay, microdelay, addclock0link \- small delays, clock interrupts
.SH SYNOPSIS
.ta \w'\fLvoid 'u
.B
void delay(int n)
.PP
.B
void microdelay(int n)
.PP
.B
void addclock0link(void(*clockf)(void))
.SH DESCRIPTION
.I Delay
busy waits for
.I n
milliseconds, forced to be at least one millisecond.
.PP
.I Microdelay
is similar, but busy waits for
.IR n
microseconds.
.PP
For delays on the order of clock ticks,
.I tsleep
(see
.IR sleep (10.2))
provides a better alternative to the busy waiting of these routines.
.PP
.I Addclock0link
adds
.I clockf
to a list of functions to be executed at each clock interrupt.
.SH SEE ALSO
.IR sleep (10.2)