Get the current state of a timer
GetTimer( timerno, mode=0 )
Return the current state of a timer.
timerno | Timer number 0-3 |
mode | mode - see below |
mode is one of:
TIMER_REMAIN | Returns remaining time on the timer in milliseconds (default) |
TIMER_TIMEOUT | Returns the initial timeout set for this timer |
TIMER_PARAM | Returns the user parameter value |
TIMER_REPEAT | Returns the number of remaining repeats |
Returns the timer parameter requested
new x; SetTimer(1, 100, 1234); // set up timer 1 x = GetTimer(1, TIMER_PARAM); // returns 1234