QueryPerformanceFrequency

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Timing functions >

QueryPerformanceFrequency

 

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