lang • timer

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

StartTime = Timer

DoSomething()

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

See also