blob: 7f54db62e471cb2de95b7651c39228aca19c3fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/tai.h>
int tain_sysclock (tain_t *a)
{
tain_t aa ;
if (!sysclock_get(&aa)) return 0 ;
if (!tai_from_sysclock(&a->sec, aa.sec.x)) return 0 ;
a->nano = aa.nano ;
return 1 ;
}
|