summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_from_sysclock.c
blob: 468c24858f87b3302070ee52e0da480b6615621a (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/tai.h>

int tain_from_sysclock (tain_t *a, tain_t const *u)
{
  if (!tai_from_sysclock(&a->sec, u->sec.x)) return 0 ;
  a->nano = u->nano ;
  return 1 ;
}