首页 > lang > timer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
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

参见

Date & Time Functions, Timer