26 okt 2009 kl. 17.52 skrev Jan Janak:
On Mon, Oct 26, 2009 at 5:11 PM, Juha Heinanen <j...@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
Now found on this URL in doxygen:
http://sip-router.org/doxygen/sip-router/branch/master/TimerDoc.html
:-)
/O
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev