VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



QueryPerformanceCounter API Call Fully Explained

by AmineHaddad (4 Submissions)
Category: Windows API Call/Explanation
Compatability: VB Script
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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

Download QueryPerformanceCounter API Call Fully Explained

Download QueryPerformanceCounter API Call Fully Explained (2 KB)

QueryPerformanceCounter API Call Fully Explained Comments

No comments have been posted about QueryPerformanceCounter API Call Fully Explained. Why not be the first to post a comment about QueryPerformanceCounter API Call Fully Explained.

Post your comment

Subject:
Message:
0/1000 characters