alarm − executes a subroutine after a specified time

remaining,integeralarm, time
externalalarm, proc
alarmremaining= ( time,proc )

The function causes the subroutine specified by proc to be
called after time seconds.  If time is zero, the alarm is
turned off and no routine is called.

The and functions interact.  If is called after the process
is never called. The signal SIGALRM occurs at the lesser of
the remaining time or time.

The value returned is the time remaining on the last alarm.


alarm(3), signal(3f), sleep(3f)