blob: 2f50418f70c8a89cc4d3b6d09ae9c81d102110bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <sys/time.h>
#include <skalibs/tai.h>
int tain_from_timeval_sysclock (tain *t, struct timeval const *tv)
{
if (!tai_from_time_sysclock(&t->sec, tv->tv_sec)) return 0 ;
t->nano = 1000 * tv->tv_usec ;
return 1 ;
}
|