Tmalarm()

LONG Tmalarm( time )

LONG time;
Tmalarm() reads/sets a process alarm for the current process.
Opcode317 (0x013d)
AvailabilityAvailable when a 'MiNT' cookie with a version of at least 1.10 exists.
Parameterstime specifies the length of time (in milliseconds) to wait before a SIGALRM signal is delivered. If time is 0 then any previously set alarm is cancelled. If time is negative the function does not modify any alarm currently set.
Binding
move.l	time,-(sp)
move.w	#$013d,-(sp)
trap	#1
addq.l	#6,sp
Return ValueTmalarm() returns 0 if no alarm was scheduled prior to this call or the amount of time remaining (in milliseconds) before the alarm is triggered.
CaveatsThis call was originally described as Talarm() in the Atari Compendium.
CommentsIf no SIGALRM signal handler has been set up when the alarm is triggered, the process will be killed.
See Also Talarm(), Pause(), Psignal()