Navigation: thinBasic Modules > Core > Timing > 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
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |