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