README.md

December 5, 2022 ยท View on GitHub

QueryPerformanceCounter API Call Fully Explained

Description

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.

More Info

Submitted On2004-04-25 17:06:32
ByAmineHaddad
LevelAdvanced
User Rating4.0 (12 globes from 3 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryWindows API Call/ Explanation
WorldVisual Basic
Archive FileQueryPerfo1737624252004.zip

API Declarations

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