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

#include <skalibs/tai.h>

int tain_wallclock_read (tain_t *a)
{
  tain_t aa ;
  if (!sysclock_get(&aa)) return 0 ;
  return tain_from_sysclock(a, &aa) ;
}