ElapsedMilliseconds()
语法
Result = ElapsedMilliseconds()概要
Returns the number of milliseconds that have elapsed since a specific time in the past.
参数
无.
返回值
Returns the elapsed time in milliseconds.
Remarks
The absolute value returned is of no use since it varies depending on the operating system. Instead, this function should be used to calculate time differences between multiple ElapsedMilliseconds() calls.
This function is relatively accurate: it may have a slight variation, depending on which operating system it is executed on, this is due to the fact that some systems have a lower timer resolution than others.
示例
StartTime = ElapsedMilliseconds() ; Get the actual value Delay(1000) ; Wait 1000 milliseconds ElapsedTime = ElapsedMilliseconds()-StartTime ; 'ElapsedTime' value should be about 1000 milliseconds
参阅
Delay()
已支持操作系统
所有