Commit | Line | Data |
---|---|---|
dc0d77d7 CE |
1 | #include "taia.h" |
2 | ||
3 | /* XXX: breaks tai encapsulation */ | |
4 | ||
5 | int taia_less(const struct taia *t,const struct taia *u) | |
6 | { | |
7 | if (t->sec.x < u->sec.x) return 1; | |
8 | if (t->sec.x > u->sec.x) return 0; | |
9 | if (t->nano < u->nano) return 1; | |
10 | if (t->nano > u->nano) return 0; | |
11 | return t->atto < u->atto; | |
12 | } |