This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== GetTimer ==== Get the current state of a timer === Description === <code>GetTimer( timerno, mode=0 )</code> Return the current state of a timer. === Parameters === | ''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 | === Return value === Returns the timer parameter requested === Example usage === <code javascript> new x; SetTimer(1, 100, 1234); // set up timer 1 x = GetTimer(1, TIMER_PARAM); // returns 1234 </code> ezeio2/scriptref/gettimer.txt Last modified: 2019-11-19 00:08by andreh Log In