Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (10.2) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sleep(10.2)

DELAY(10.2)

NAME

delay, microdelay, addclock0link − small delays, clock interrupts

SYNOPSIS

voiddelay(int n);

voidmicrodelay(int n);

voidaddclock0link(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(10.2)) provides a better alternative to the busy waiting of these routines.

­Addclock0link adds ­clockf to a list of functions to be executed at each clock interrupt. 

SEE ALSO

sleep(10.2)

Plan 9  —  June 08, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026