blob: e471b95ebc6b4a9aa9969056d3a78680b4123e2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <time.h>
#include <skalibs/tai.h>
int tain_from_timespec (tain_t *t, struct timespec const *ts)
{
if (!tai_from_time(&t->sec, ts->tv_sec)) return 0 ;
t->nano = ts->tv_nsec ;
return 1 ;
}
|