Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileTsetitimer() GEMDOSSyntaxLONG Tsetitimer( which, interval, value, ointerval, ovalue )
WORD which;
LONG *interval;
LONG *value;
LONG *ointerval;
LONG *ovalue;
Function Tsetitimer() schedule an interval timer.
Opcode 329 (0x0149)
Availability Available when a 'MiNT' cookie with a version of at least
1.11 exists.
Parametres which is ITIMER_REAL (0) for SIGALRM, ITIMER_VIRTUAL (1)
for SIGVTALRM, or ITIMER_PROF (2) for SIGPROF.
The rest of the parameters are pointers to millisecond
values. interval is the value to which the timer will be
reset. value is the current timer value. ointerval and
ovalue are the previous values.
Binding pea ovalue
pea ointerval
pea value
pea inteval
move.w which,-(sp)
move.w #$0149,-(sp)
trap #1
lea $12(sp),sp
Return Value Value Tsetitimer() returns E_OK or a negative GEMDOS error
code otherwise.
Comments Setting new interval values needs root privileges.