Home > lang > timer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Timer
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.

Example 1

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, Timer