What it does?
Returns the seconds elapsed since the last call to itself with a microsecond resolution.
Example?
#SingleInstance Force #NoEnv SetBatchLines -1 ; always set this if you do performance tests. LastTickCount=%A_TickCount% ;just to see the difference QPC() sleep, 1337 ; 1.337 seconds msgbox, % "Tick method = " A_TickCount-LastTickCount "`nQPC() method = " QPC() QPC() { Static QPCLAST, QPCNOW, QPCFREQ if not QPCFREQ if not DllCall("QueryPerformanceFrequency", "Int64 *", QPCFREQ) return "Fail QPF" QPCLAST=%QPCNOW% if not DllCall("QueryPerformanceCounter", "Int64 *", QPCNOW) return "Fail QPC" return (QPCNOW-QPCLAST)/QPCFREQ }