Futurebasic/Language/Reference/timer function

From Wikibooks, open books for an open world
Jump to navigation Jump to search

TIMER[edit | edit source]

Function[edit | edit source]

(+) Appearance (+) Standard (+) Console

Syntax[edit | edit source]

secondsSinceMidnight& = TIMER

Description[edit | edit source]

This function returns the current time of day expressed as a number of seconds since midnight. Its value ranges from 0 through 86399. Note: The TIMER function is useful for measuring elapsed time intervals, as long as you make appropriate adjustments in case the measured interval crosses the midnight boundary. To measure time intervals with a finer resolution than 1 second, use the Toolbox routines TICKCOUNT or MICROSECONDS. The TICKCOUNT function measures the number of "ticks" since startup (there are approximately 60.15 ticks per second), and the MICROSECONDS procedure measures the number of microseconds since startup.

See Also[edit | edit source]

TIME$