Author Topic: QueryPerformanceFrequency  (Read 1793 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
QueryPerformanceFrequency
« on: July 19, 2013, 12:42:01 PM »
Is Gone!
« Last Edit: February 07, 2015, 12:28:22 PM by Peter »

Charles Pegge

  • Guest
Re: QueryPerformanceFrequency
« Reply #1 on: July 20, 2013, 02:10:19 AM »
Hi Peter,

Could you show me how you use these calls?

Charles Pegge

  • Guest
Re: QueryPerformanceFrequency
« Reply #2 on: July 20, 2013, 03:07:37 AM »
When you use full prototypes:

Code: [Select]
! QueryPerformanceCounter    Lib "kernel32.dll" (quad *c)  
! QueryPerformanceFrequency Lib "kernel32.dll" (quad *c)  
! Sleep Lib "kernel32.dll" (long ms)  
quad qf,qc1,qc2
double qt

 
QueryPerformanceFrequency qf   'this is how it works!
QueryPerformanceCounter   qc1

Sleep 100
QueryPerformanceCounter   qc2
qt=(qc2-qc1)/qf
print str qt,6