Timer

Time = Timer [ () ]

Return the number of elapsed seconds from the beginning of the program as a floating point number.

This function uses the system timer, so its return value is affected if the system clock is set e.g. by root with the date shell command.

Examples

Print Timer
0.291657006775

Dim StartTime As Float
Dim DiffTime As Float
Dim I As Integer

StartTime = Timer

For I = 1 To 1000000
Next

DiffTime = Timer - StartTime
Print DiffTime * 1000; " msec"
7.594034075737 msec

See also