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

#include <skalibs/tai.h>

int tai_sub (tai_t *t, tai_t const *u, tai_t const *v)
{
  return tai_u64(t, tai_sec(u) - tai_sec(v)) ;
}