TIMER function

Purpose

Return the number of seconds that have elapsed since midnight.

Syntax

y = TIMER

Remarks

TIMER returns the number of seconds since midnight as a Double-precision floating-point value.  The resolution is about 1/100 of a second on NT-based platforms, or 1/18th of a second on earlier platforms.

See also

DATE$, TIME$

Example

OldTime$ = TIME$ ' Current time

TIME$ = "12"     ' Noon

NoonSec$ = FORMAT$(TIMER, "#,")

x$ = "Noon is " + NoonSec$ + " seconds past midnight"

TIME$ = OldTime$ ' Restore time

Result

Noon is 43,200 seconds past midnight