Home | History | Annotate | Download | only in misc

Lines Matching refs:t2

58  * Return: -1 if t1 is less than t2
59 * 0 if t1 is equal to t2
60 * 1 if t1 is greater than t2
62 int cmp_timestamp(struct timestamp *t1, struct timestamp *t2)
64 if(t1->t.tv_sec < t2->t.tv_sec)
66 if(t1->t.tv_sec > t2->t.tv_sec)
69 if(t1->t.tv_nsec < t2->t.tv_nsec)
71 if(t1->t.tv_nsec > t2->t.tv_nsec)
107 * Return: -1 if t1 is less than t2
108 * 0 if t1 is equal to t2
109 * 1 if t1 is greater than t2
111 int cmp_timestamp(struct timestamp *t1, struct timestamp *t2)
113 if(t1->t.tv_sec < t2->t.tv_sec)
115 if(t1->t.tv_sec > t2->t.tv_sec)
118 if(t1->t.tv_usec < t2->t.tv_usec)
120 if(t1->t.tv_usec > t2->t.tv_usec)