|
|
Rockbox mail archiveSubject: Re: DEV timer? GetTicks?From: Björn Stenberg (bjorn_at_haxx.se) Date: 2003-09-22
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.
-- Björn
Page was last modified "Mar 9 2008" The Rockbox Crew |