OSTimerExpired Function (ROM Call 0xF3)

system.h

short OSTimerExpired (short timer_no);

Determines whether a notify (countdown) timer expired.

OSTimerExpired returns TRUE if the notify (countdown) timer timer_no expired, else returns FALSE. See OSRegisterTimer for more info. For example, a legal way to make a 5-second delay is:

OSFreeTimer (USER_TIMER);
OSRegisterTimer (USER_TIMER, 5*20);
while (!OSTimerExpired (USER_TIMER));
OSTimerExpired also resets flag which tells that the timer was expired, so the calling this function again will return FALSE.


Used by: cmd_cyclepic, cmd_disptbl, cmd_pause, cmd_sendcalc, cmd_sendchat, push_getkey, EV_eventLoop, EV_getc, BatTooLowFlash, LIO_RecvData, OSLinkOpen, GS_PlotAll, GT_Trace, GZ_Stat, Regraph