ualarm(3C)
NAME
ualarm − schedule signal after interval in microseconds
SYNOPSIS
#include <unistd.h>
unsigned int ualarm(unsigned int usecs,
unsigned int interval);
DESCRIPTION
ualarm() sends signal SIGALRM (see signal(3C)), to the caller in a number of microseconds given by the usecs argument. Unless caught or ignored, the signal terminates the caller.
If the interval argument is non-zero, the SIGALRM signal will be sent to the caller every interval microseconds after the timer expires (for instance, after usecs microseconds have passed).
Because of scheduling delays, resumption of execution when the signal is caught may be delayed an arbitrary amount.
Interactions between ualarm() and either alarm(2) or sleep(3C) are unspecified.
RETURN VALUES
The return value is the amount of time previously remaining in the alarm clock.
SEE ALSO
alarm(2), getitimer(2), setitimer(2), sighold(3C), signal(3C), sleep(3C), usleep(3C)
NOTES
ualarm() is a simplified interface to setitimer(2); (see getitimer(2)).
SunOS 5.5/x86 — Last change: 12 Feb 1993