Lines Matching refs:tv_sec
51 long tv_sec; /* seconds */ member
74 tp->tv_sec = static_cast<long>( t / 1000000UL); in gettimeofday()
91 long tv_sec; member in timeval_demo::xtime
97 --tv_sec; in fixup()
104 tv_sec = sec; in xtime()
107 tv_sec += tv_usec / 1000000; in xtime()
116 tv_sec = static_cast<long>(usec / 1000000); in xtime()
121 operator long long() const {return static_cast<long long>(tv_sec) * 1000000 + tv_usec;} in operator long long()
124 tv_sec += rhs.tv_sec; in operator +=()
128 ++tv_sec; in operator +=()
134 tv_sec -= rhs.tv_sec; in operator -=()
141 long long t = tv_sec * 1000000 + tv_usec; in operator %=()
142 long long r = rhs.tv_sec * 1000000 + rhs.tv_usec; in operator %=()
144 tv_sec = static_cast<long>(t / 1000000); in operator %=()
155 { return (x.tv_sec == y.tv_sec && x.tv_usec == y.tv_usec); } in operator ==()
158 if (x.tv_sec == y.tv_sec) in operator <()
160 return (x.tv_sec < y.tv_sec); in operator <()
169 {return os << '{' << x.tv_sec << ',' << x.tv_usec << '}';} in operator <<()
190 xtime xt( tv.tv_sec, tv.tv_usec); in now()
197 xtime xt( tv.tv_sec, tv.tv_usec); in now()
206 xtime xt( ts.tv_sec, ts.tv_nsec/1000); in now()