Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Accurate timing?!
« previous next »
  • Print
Pages: [1]

Author Topic: Accurate timing?!  (Read 1591 times)

Offline hydroo

  • Member
  • *
  • Posts: 7
Accurate timing?!
« on: January 22, 2008, 07:50:46 AM »
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
« Last Edit: January 22, 2008, 07:52:23 AM by hydroo »
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: Accurate timing?!
« Reply #1 on: January 22, 2008, 08:21:21 AM »
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.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Accurate timing?!
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.061 seconds with 15 queries.