]> git.ipfire.org Git - thirdparty/bird.git/commit
IO: Add current_time_now() function for immediate timestamp
authorToke Høiland-Jørgensen <toke@toke.dk>
Thu, 1 Jun 2023 22:26:41 +0000 (00:26 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 1 Jun 2023 22:26:41 +0000 (00:26 +0200)
commitd8cf3cad5104ab7a9887397b2a34d94c8a5f2aef
tree5e2d4be853f84197031092febf20a66a7a7acdf7
parentf8ba82804faba5cc1520d4545330502e29b9e920
IO: Add current_time_now() function for immediate timestamp

Add a current_time_now() function which gets an immediate monotonic
timestamp instead of using the cached value from the event loop. This is
useful for callers that need precise times, such as the Babel RTT
measurement code.

Minor changes by committer.
lib/timer.h
sysdep/unix/io.c