作者: SKAN 最近更新时间: 20091210
Calculates a high precision time difference in seconds. In example, could be used for benchmarking.
QPX( N=0 )
关于函数的参数和返回值, 请参阅其源码或 此文档.
The function is very simple in usage, but it lacks an external documentation. So I wrote a simple one.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=52083
不存在
; #Include QPX.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% SetBatchLines -1 ;;** Basic Usage ** QPX( True ) ; Initialise Counter Sleep 1000 Ti := QPX( False ) ; Retrieve Time consumed ( & reset internal vars ) MsgBox, 0, Sleep 1000, %Ti% seconds ;;** Extended Usage ** While QPX( 1000 ) ; Loops 1000 times and keeps internal track of the total time Tooltip %A_Index% Ti := QPX() ; Retrieve Avg time consumed per iteration ( & reset internal vars ) MsgBox, 0, Avg Time Taken for ToolTip, %Ti% Seconds / Iteration