GLBasic forum

Main forum => GLBasic - en => Topic started by: bigsofty on 2007-Nov-28

Title: High resolution timers...
Post by: bigsofty on 2007-Nov-28
Win32: QueryPerformanceCounter()
Win32: QueryPerformanceFrequency()

Any chance of these being supported in some way... I could inline win32 Kernel32.DLL BUT this would make my source only Win32 only, which I'm trying to avoid.

I need this increased timer resolution as the current 1000th of a second is not accurate enough for my needs and I'm converting a Delphi source that uses the above calls.

Any suggestions Gernot?
Title: High resolution timers...
Post by: Kitty Hello on 2007-Nov-28
Yes, they are supported. GETTIMERALL() uses them and gives you a floating point number representing the values above. If not accurate enough, please tell me. I'll tell you how to us ethese then.
Title: High resolution timers...
Post by: bigsofty on 2007-Nov-28
Hmmm, I assumed it was tickrate() the 1000th of a second counter, I'll investigate more.