Page 1 of 1
Timer realization

Posted:
Nov 4, 2002 @ 2:16pm
by Viking
Does anyone know how to implement realization high-precise timer based on GetTickCount or smth. like QueryPerformanceFrequency / QueryPerformanceCount ?
Does anyone and how it looks? :)
P.S. API SetTimer function is inaccurate, you know...

Posted:
Nov 4, 2002 @ 2:58pm
by BurningSheep
QueryPerformanceFrequency and QueryPerformanceCount are available on PocketPC, but from the docs I get that the OEMs don't necesseraly provide high-resolution performance counters. So you probably want to check whether it's available.

Posted:
Nov 4, 2002 @ 4:25pm
by Viking
What's about
PocketPC 2002 with using
GetTickCount method?
Anyway, if somebody use high-resolution timer or just have an ideas how to do that... just reply somewhere.
P.S. Maybe it's enough for most to use API
SetTimer... though. [/b]

Posted:
Nov 4, 2002 @ 7:32pm
by gott_e
You can use QueryPerformanceCounter, it works fine.
Regards..
Marco.

Posted:
Nov 4, 2002 @ 7:38pm
by Viking
Extremely perfect suggestion.
Could you give a one tiny example? Please.


Posted:
Nov 4, 2002 @ 7:50pm
by MirekCz