Tk_Sleep(3Tk) Tk_Sleep(3Tk)
Tk_Sleep - delay execution for a given number of milliseconds
#include <tk.h>
Tk_Sleep(ms)
intms(in)
Number of milliseconds to sleep.
This procedure delays the calling process by the number of milliseconds
given by the ms parameter, and returns after that time has elapsed. It
is typically used for things like flashing a button, where the delay is
short and the application needn't do anything while it waits. For longer
delays where the application needs to respond to other events during the
delay, the procedure Tk_CreateTimerHandler should be used instead of
Tk_Sleep.
sleep, time, wait
SLEEP(3F) SLEEP(3F)
sleep - suspend execution for an interval
subroutine sleep (itime)
Sleep causes the calling process to be suspended for itime seconds. The
actual time can be up to 1 second less than itime due to granularity in
system timekeeping.
/usr/lib/libU77.a
sleep(3)
MIPS Computer Systems
SLEEP(3C) SLEEP(3C)
sleep - suspend execution for interval
#include <unistd.h>
unsigned sleep (unsigned seconds);
The current thread is suspended from execution for the number of seconds
specified by the argument. The actual suspension time may be less than
that requested because any caught signal will terminate the sleep
following execution of that signal's catching routine. Also, the
suspension time may be longer than requested by an arbitrary amount due
to the scheduling of other activity in the system. The value returned by
sleep will be the ``unslept'' amount (the requested time minus the time
actually slept) in case of premature arousal due to a caught signal.
Unlike previous implementations, sleep is implemented with the sginap(2)
system call rather than with alarm(2). Therefore, there are no unusual
side effects with the SIGALRM signal; its effect is like that of any
other signal.
alarm(2), sginap(2), pause(2), sigaction(2), sigset(2)
PPPPaaaaggggeeee 1111 [ Back ]
|