Lines Matching defs:t1
45 * Make `t1' consistent.
49 timevalfix(struct timeval *t1)
51 if (t1->tv_usec < 0) {
52 t1->tv_sec--;
53 t1->tv_usec += 1000000;
55 if (t1->tv_usec >= 1000000) {
56 t1->tv_sec++;
57 t1->tv_usec -= 1000000;
62 * t1 += t2
66 timevaladd(struct timeval *t1, const struct timeval *t2)
68 t1->tv_sec += t2->tv_sec;
69 t1->tv_usec += t2->tv_usec;
70 timevalfix(t1);
74 * t1 -= t2
78 timevalsub(struct timeval *t1, const struct timeval *t2)
80 t1->tv_sec -= t2->tv_sec;
81 t1->tv_usec -= t2->tv_usec;
82 timevalfix(t1);