Lines Matching defs:t1
43 * Make `t1' consistent.
47 timevalfix(struct timeval *t1)
49 if (t1->tv_usec < 0) {
50 t1->tv_sec--;
51 t1->tv_usec += 1000000;
53 if (t1->tv_usec >= 1000000) {
54 t1->tv_sec++;
55 t1->tv_usec -= 1000000;
60 * t1 += t2
64 timevaladd(struct timeval *t1, const struct timeval *t2)
66 t1->tv_sec += t2->tv_sec;
67 t1->tv_usec += t2->tv_usec;
68 timevalfix(t1);
72 * t1 -= t2
76 timevalsub(struct timeval *t1, const struct timeval *t2)
78 t1->tv_sec -= t2->tv_sec;
79 t1->tv_usec -= t2->tv_usec;
80 timevalfix(t1);