tai_from_sysclock.c (335B)
1 /* ISC license. */ 2 3 #include <skalibs/config.h> 4 #include <skalibs/uint64.h> 5 #include <skalibs/tai.h> 6 7 #ifdef SKALIBS_FLAG_CLOCKISTAI 8 9 int tai_from_sysclock (tai *t, uint64_t u) 10 { 11 return tai_u64(t, u + 10U) ; 12 } 13 14 #else 15 16 #include <skalibs/djbtime.h> 17 18 int tai_from_sysclock (tai *t, uint64_t u) 19 { 20 return tai_from_utc(t, u) ; 21 } 22 23 #endif