1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Merge commit '5121101136cb80151a9361c63dc4822afeb44eef' into thread-next

This commit is contained in:
Maria Matejka
2023-10-12 14:12:33 +02:00
43 changed files with 1076 additions and 158 deletions

View File

@@ -278,6 +278,19 @@ times_update(void)
DBG("Time update collision: real_time");
}
btime
current_time_now(void)
{
struct timespec ts;
int rv;
rv = clock_gettime(CLOCK_MONOTONIC, &ts);
if (rv < 0)
die("clock_gettime: %m");
return ts.tv_sec S + ts.tv_nsec NS;
}
/**
* DOC: Sockets
*