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

#include <sys/time.h>
#include <skalibs/tai.h>

int tai_relative_from_timeval (tai_t *t, struct timeval const *tv)
{
  tai_u64(t, tv->tv_sec) ;
  return 1 ;
}