Rockbox Development > Starting Development and Compiling
Accurate timing?!
(1/1)
hydroo:
Hi,
I am thinking about creating a game for rockbox.
I have been playing around a bit, and have some questions.
Is there kernel-timer ("current_tick" reliable? - steady and 100 ticks/sec ?)
Are there platformdifferences?
Can the tickfrequency change?
What would be the best way to get a steady, accurate clock?
(I am using the sansae200, if that matters)
regards
LinusN:
Yes, the tick timer is reliable, and it ticks with HZ ticks per second (currently 100, not likely to change)
There is also a possibility to use one of the hardware timers if you need better resolution.
All targets have the same tick timer, but not all have available hardware timers to use.
Navigation
[0] Message Index
Go to full version