Lines Matching refs:t1
96 timevalfix(struct timeval *t1)
99 if (t1->tv_usec < 0) {
100 t1->tv_sec--;
101 t1->tv_usec += 1000000;
103 if (t1->tv_usec >= 1000000) {
104 t1->tv_sec++;
105 t1->tv_usec -= 1000000;
117 timevaladd(struct timeval *t1, const struct timeval *t2)
120 t1->tv_sec += t2->tv_sec;
121 t1->tv_usec += t2->tv_usec;
122 timevalfix(t1);
126 timevalsub(struct timeval *t1, const struct timeval *t2)
129 t1->tv_sec -= t2->tv_sec;
130 t1->tv_usec -= t2->tv_usec;
131 timevalfix(t1);