On Mon, Oct 26, 2009 at 5:11 PM, Juha Heinanen <jh(a)tutpro.com> wrote:
Jan Janak writes:
How about using ticks then? Ticks fit into a
32-bit number. By default
there are 16 ticks per second (but you can change it in
timer_ticks.h), would that provide enough precision?
yes, 16 ticks per second would be enough.
OK, then I think everything you need should already be there. You can
use get_ticks_raw() to get the ticks value and store it in an AVP.
Various macros for comparison and conversion of ticks are in
timer_ticks.h.
Some documentation (written by Andrei) is in doc/timers.txt
-- Jan