Oxygen Basic
Programming => Problems & Solutions => Topic started by: Peter on July 19, 2013, 12:42:01 PM
-
Is Gone!
-
Hi Peter,
Could you show me how you use these calls?
-
When you use full prototypes:
! 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