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

#include <skalibs/tai.h>

int tain_less (tain const *t, tain const *u)
{
  if (tai_sec(&t->sec) < tai_sec(&u->sec)) return 1 ;
  if (tai_sec(&t->sec) > tai_sec(&u->sec)) return 0 ;
  return t->nano < u->nano ;
}