CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > Timer

Timer

The Timer event is used to track elapsed time or can be displayed as a stopwatch in a dialog.

Syntax

Timer()

Return Value

The number of seconds since midnight.

Related Functions

Date | Time | Now

Example

Dim TS As Single
Dim TE As Single
Dim TEL As Single

TS = Timer
MsgBox "Starting Timer"
TE = Timer
TT = TE - TS
Print TT