VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

QueryPerformanceCounter API Call Fully Explained

AmineHaddad  (4 Submissions)   Windows API Call/Explanation   VB Script   Advanced   Wed 3rd February 2021

Most people use GetTickCount, but to be honest this makes GetTickCount look like a joke. QueryPerformanceCounter finds the time in microseconds, and not milliseconds (like GetTickCount). Why use this? If you wanted to see the time that it took for the cpu to proccess an API call, GetTickCount would find 0, because it takes less then a millisecond. But QueryPerformanceCounter would find the real time. I suggest using this because it is much more precise.

API Declarations
Private Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As Currency) As Long
Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As Currency) As Long

Rate QueryPerformanceCounter API Call Fully Explained (3(3 Vote))

Download QueryPerformanceCounter API Call Fully Explained

QueryPerformanceCounter API Call Fully Explained Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters