High resolution timers...

Previous topic - Next topic

bigsofty

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?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

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.

bigsofty

Hmmm, I assumed it was tickrate() the 1000th of a second counter, I'll investigate more.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)