• Home
  • Raw
  • Download

Lines Matching refs:TimeValue

31   class TimeValue {
41 static TimeValue MinTime() { in MinTime()
42 return TimeValue ( INT64_MIN,0 ); in MinTime()
49 static TimeValue MaxTime() { in MaxTime()
50 return TimeValue ( INT64_MAX,0 ); in MaxTime()
56 static TimeValue ZeroTime() { in ZeroTime()
57 return TimeValue ( 0,0 ); in ZeroTime()
63 static TimeValue PosixZeroTime() { in PosixZeroTime()
64 return TimeValue ( PosixZeroTimeSeconds,0 ); in PosixZeroTime()
70 static TimeValue Win32ZeroTime() { in Win32ZeroTime()
71 return TimeValue ( Win32ZeroTimeSeconds,0 ); in Win32ZeroTime()
95 TimeValue() : seconds_(0), nanos_(0) {} in TimeValue() function
100 explicit TimeValue (SecondsType seconds, NanoSecondsType nanos = 0)
106 explicit TimeValue( double new_time ) in TimeValue() function
118 static TimeValue now();
127 TimeValue& operator += (const TimeValue& that ) {
137 TimeValue& operator -= (const TimeValue &that ) {
147 int operator < (const TimeValue &that) const { return that > *this; }
152 int operator > (const TimeValue &that) const {
164 int operator <= (const TimeValue &that) const { return that >= *this; }
168 int operator >= (const TimeValue &that) const {
179 int operator == (const TimeValue &that) const {
187 int operator != (const TimeValue &that) const { return !(*this == that); }
192 friend TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2);
197 friend TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2);
371 inline TimeValue operator + (const TimeValue &tv1, const TimeValue &tv2) {
372 TimeValue sum (tv1.seconds_ + tv2.seconds_, tv1.nanos_ + tv2.nanos_);
377 inline TimeValue operator - (const TimeValue &tv1, const TimeValue &tv2) {
378 TimeValue difference (tv1.seconds_ - tv2.seconds_, tv1.nanos_ - tv2.nanos_ );