Lines Matching refs:t1
49 inline int operator >= ( const timeval &t1, const timeval &t2 ) in operator >=() argument
51 if( t1.tv_sec == t2.tv_sec ) in operator >=()
52 return t1.tv_usec >= t2.tv_usec; in operator >=()
53 return t1.tv_sec > t2.tv_sec; in operator >=()
56 inline int operator > ( const timeval &t1, const timeval &t2 ) in operator >() argument
58 if( t1.tv_sec == t2.tv_sec ) in operator >()
59 return t1.tv_usec > t2.tv_usec; in operator >()
60 return t1.tv_sec > t2.tv_sec; in operator >()
63 inline int operator == ( const timeval &t1, const timeval &t2 ) in operator ==() argument
65 if( t1.tv_sec == t2.tv_sec ) in operator ==()
66 return t1.tv_usec == t2.tv_usec; in operator ==()
70 inline timeval &operator -= ( timeval &t1, const timeval &t2 ) in operator -=() argument
72 if( t1.tv_usec < t2.tv_usec ) in operator -=()
74 t1.tv_sec--; in operator -=()
75 t1.tv_usec += 1000000; in operator -=()
77 t1.tv_sec -= t2.tv_sec; in operator -=()
78 t1.tv_usec -= t2.tv_usec; in operator -=()
79 return t1; in operator -=()
82 inline timeval &operator += ( timeval &t1, const timeval &t2 ) in operator +=() argument
84 t1.tv_sec += t2.tv_sec; in operator +=()
85 t1.tv_usec += t2.tv_usec; in operator +=()
86 if( t1.tv_usec > 1000000 ) in operator +=()
88 t1.tv_sec++; in operator +=()
89 t1.tv_usec -= 1000000; in operator +=()
91 return t1; in operator +=()
94 inline timeval &operator += ( timeval &t1, sal_uIntPtr t2 ) in operator +=() argument
96 t1.tv_sec += t2 / 1000; in operator +=()
97 t1.tv_usec += t2 ? (t2 % 1000) * 1000 : 500; in operator +=()
98 if( t1.tv_usec > 1000000 ) in operator +=()
100 t1.tv_sec++; in operator +=()
101 t1.tv_usec -= 1000000; in operator +=()
103 return t1; in operator +=()
106 inline timeval operator + ( const timeval &t1, const timeval &t2 ) in operator +() argument
108 timeval t0 = t1; in operator +()
112 inline timeval operator + ( const timeval &t1, sal_uIntPtr t2 ) in operator +() argument
114 timeval t0 = t1; in operator +()
118 inline timeval operator - ( const timeval &t1, const timeval &t2 ) in operator -() argument
120 timeval t0 = t1; in operator -()