[sr-dev] routing time of sip request
Jan Janak
jan at ryngle.com
Mon Oct 26 17:52:37 CET 2009
On Mon, Oct 26, 2009 at 5:11 PM, Juha Heinanen <jh at 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
More information about the sr-dev
mailing list