Anonymous user
Time a function: Difference between revisions
m
→Using QueryPerformanceCounter
Line 533:
TimeFunction(Function, Parameters*) {
SetBatchLines, -1
DllCall("QueryPerformanceCounter", "Int64*", CounterBefore) ; Start the counter.
DllCall("QueryPerformanceFrequency", "Int64*", Freq) ; Get the frequency of the counter.
%Function%(Parameters*)
DllCall("QueryPerformanceCounter", "Int64*", CounterAfter) ; End the counter.
|