<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Timing functions > QueryPerformanceCounter |
Description
Retrieves the current value of the high-resolution performance counter.
Syntax
n = QueryPerformanceCounter
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
Remarks
Important notes
QueryPerformanceCounter and QueryPerformanceFrequency offer a bit better resolution, but have different issues. For example in Windows XP, all AMD Athlon X2 dual core CPUs return the PC of either of the cores "randomly" (the PC sometimes jumps a bit backwards), unless you specially install AMD dual core driver package to fix the issue. We haven't noticed any other dual+ core CPUs having similar issues (p4 dual, p4 ht, core2 dual, core2 quad, phenom quad). |
Restrictions
See also
Examples