Home > lang > timer 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Timer
Syntax
Time = Timer [ ( ) ] AS Float

Returns 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 command.

Examples

Print Timer

0.291657006775

DIM StartTime as Float
DIM DiffTime as Float

StartTime = Timer
ME.Show
DiffTime = Timer - StartTime
PRINT DiffTime * 1000; " msec"

0.210999976844 msec

See also

Date & Time Functions