blob: 83aa1c3e63e53a849ab8b5f9809d6c24c281f328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <sys/time.h>
#include <errno.h>
#include <skalibs/tai.h>
int tain_relative_from_timeval (tain_t *a, struct timeval const *tv)
{
if (!tai_relative_from_timeval(tain_secp(a), tv)) return 0 ;
a->nano = 1000 * tv->tv_usec ;
return 1 ;
}
|