Rockbox mail archiveSubject: Re: DEV timer? GetTicks?
From: Björn Stenberg (bjorn_at_haxx.se)
Minuk Choi wrote:
Yes. The variable 'current_tick' is incremented HZ times per second.
> I want to write something that implements a time based (in milliseconds)
You should use sleep(HZ/fraction) for that. Busy waiting does not work since we don't use preemptive scheduling.
Page was last modified "Jan 10 2012" The Rockbox Crew