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

#include <skalibs/tai.h>

int sysclock_from_tain (tain *u, tain const *t)
{
  if (!sysclock_from_tai(&u->sec.x, &t->sec)) return 0 ;
  u->nano = t->nano ;
  return 1 ;
}