Lines Matching refs:t1
102 timevaladd(struct timeval *t1, struct timeval *t2) in timevaladd() argument
104 t1->tv_sec += t2->tv_sec; in timevaladd()
105 t1->tv_usec += t2->tv_usec; in timevaladd()
106 timevalfix(t1); in timevaladd()
110 timevalsub(struct timeval *t1, struct timeval *t2) in timevalsub() argument
112 t1->tv_sec -= t2->tv_sec; in timevalsub()
113 t1->tv_usec -= t2->tv_usec; in timevalsub()
114 timevalfix(t1); in timevalsub()
118 timevalfix(struct timeval *t1) in timevalfix() argument
120 if (t1->tv_usec < 0) { in timevalfix()
121 t1->tv_sec--; in timevalfix()
122 t1->tv_usec += 1000000; in timevalfix()
124 if (t1->tv_usec >= 1000000) { in timevalfix()
125 t1->tv_sec++; in timevalfix()
126 t1->tv_usec -= 1000000; in timevalfix()