Increasing the granularity of internal timers in Bird?

Ondrej Zajicek santiago at crfreenet.org
Mon Jun 5 20:12:32 CEST 2017


On Mon, Jun 05, 2017 at 06:53:02PM +0200, Toke Høiland-Jørgensen wrote:
> Hey
> 
> I have been looking at changing the internal timers in Bird to operate
> at millisecond granularity instead of the current one-second steps. I
> have two motivations for this:

Hi

Check this:

https://gitlab.labs.nic.cz/labs/bird/tree/timers

It is a recent branch that replaces current timers with microsecond
timers (already used in BFD). You could just swap bird_clock_t, timer
and tm_*() functions with btime, timer2 and tm2_*() functions (with
updated arguments). Also time constants in config file should be
specified by expr_us instead of expr.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170605/3940534a/attachment.asc>


More information about the Bird-users mailing list