Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Futurebasic/Language/Reference/timer statement

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

TIMER Statement (+) Appearance (+) Standard Console Syntax TIMER = interval TIMER(0) OFF TIMER(0) END Revised January 14, 2001 (Release 4) Description If you have designated a timer-event handling routine (using the ON TIMER statement), the TIMER statement alters the interval at which timer events occur. If timer events have not yet been initiated (because your ON TIMER statement specified an interval of zero), then the TIMER statement also initiates timer events. If the interval parameter is greater than zero, it specifies the interval in seconds. If interval is less than zero, then ABS(interval) specifies the interval in ticks (a tick is approximately 1/60 second). If you set interval to zero, the TIMER statement is ignored; you cannot use the TIMER statement to disable timer events once they've been initiated. Timer events are internally queued by FB until your application is ready to accept them. If you are receiving events once per second and your program is occupied with other tasks for 10 seconds, you wll receive 10 timer events at the first available opportunity. If you wish to flush the timer event queue, use TIMER(0) OFF or TIMER(0) END. See Also ON TIMER