|
|
Rockbox mail archiveSubject: Tick accuracyFrom: Johan Vromans (jvromans_at_squirrel.nl) Date: 2003-04-30
Just wondering...
apps/screens.c, usb_screen:
while(usb_wait_for_disconnect_w_tmo(&button_queue, HZ)) {
This would call status_draw() once every HZ (100) ticks.
apps/status.c, status_draw:
if(TIME_AFTER(current_tick, switch_tick)) {
Assuming it is called on tick 0, switch_tick is set to 100.
In other words, the code that is assumed to be executed every 100
Is that correct? Am I overlooking something?
-- Johan
Page was last modified "Jan 10 2012" The Rockbox Crew |