|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
#include <unistd.h> unsigned alarm(unsigned seconds);
This function causes the signal
SIGALRM to be raised in
seconds seconds. A value of zero for seconds cancels any
pending alarm. If an alarm has previously been set, the new alarm delay
will supercede the prior call.
Note that signals in DJGPP are deferred when the program is inside a real-mode (e.g., DOS) call or isn't touching its data; see signal, for more details.
A misfeature of Windows 9X prevents the timer tick interrupt from being
delivered to programs that are in the background (i.e. don't have the
focus), even though the program itself might continue to run, if you
uncheck the Background: Always suspend property in the Property
alarm will not work in background programs on
The number of seconds remaining on the timer (i.e. always seconds).
|webmaster||delorie software privacy|
|Copyright © 2004 by DJ Delorie||Updated Apr 2004|