.TH SNOOZE 3 MIDI .SH NAME snooze \- sleep for the specified number of milliseconds .SH SYNOPSIS .Cs .in cc ... \-lmidi .sp snooze(msec) int msec; .in .Ce .SH DESCRIPTION \fISnooze()\fP uses the select call to suspend execution for \fImsec\fP milliseconds. \fIMsec\fP may be as large as 2^31 (3 weeks, 3 days, 20 hours, 31 minutes, and 23.648 seconds) or as small as 0 (returns ``immediately''). The code used is: .Cs struct timeval tout; tout.tv_sec = msec / 1000; tout.tv_usec = (msec % 1000) * 1000; select(0, 0, 0, 0, &tout); .Ce .SH AUTHOR Peter Langston, Bell Communications Research (bellcore!psl)