Navigation:  thinBasic Modules > Core > Timing >

QueryPerformanceFrequency

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the frequency of the high-resolution performance counter

 

Syntax

 

n = QueryPerformanceFrequency

 

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).
 
More info: http://www.virtualdub.org/blog/pivot/entry.php?id=106

 

Restrictions

 

See also

 

Examples

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com