返回一个可以给TimerDiff()函数使用的句柄,用于计算经过的毫秒数.
TimerInit ( )
Local $hTimer = TimerInit() ; Begin the timer and store the handle in a variable.
Sleep(3000) ; Sleep for 3 seconds.
Local $iDiff = TimerDiff($hTimer) ; Find the difference in time from the previous call of TimerInit. The variable we stored the TimerInit handlem is passed as the "handle" to TimerDiff.
MsgBox(4096,"时间差,这个计时的精度比sleep高",$iDiff)