Home | History | Annotate | Download | only in time

Lines Matching refs:delta

93 BASE_EXPORT int64_t SaturatedAdd(TimeDelta delta, int64_t value);
94 BASE_EXPORT int64_t SaturatedSub(TimeDelta delta, int64_t value);
126 static TimeDelta FromInternalValue(int64_t delta) { return TimeDelta(delta); }
128 // Returns the maximum time delta, which should be greater than any reasonable
129 // time delta we might compare it to. Adding or subtracting the maximum time
130 // delta to a time or another time delta has an undefined result.
148 // Returns true if the time delta is zero.
153 // Returns true if the time delta is the maximum time delta.
160 // Returns the time delta in some unit. The F versions return a floating
246 friend int64_t time_internal::SaturatedAdd(TimeDelta delta, int64_t value);
247 friend int64_t time_internal::SaturatedSub(TimeDelta delta, int64_t value);
249 // Constructs a delta given the duration in microseconds. This is private
254 // Private method to build a delta from a double.
257 // Private method to build a delta from the product of a user-provided value
261 // Delta in microseconds.
336 // Return a new time modified by some delta.
337 TimeClass operator+(TimeDelta delta) const {
338 return TimeClass(time_internal::SaturatedAdd(delta, us_));
340 TimeClass operator-(TimeDelta delta) const {
341 return TimeClass(-time_internal::SaturatedSub(delta, us_));
344 // Modify by some time delta.
345 TimeClass& operator+=(TimeDelta delta) {
346 return static_cast<TimeClass&>(*this = (*this + delta));
348 TimeClass& operator-=(TimeDelta delta) {
349 return static_cast<TimeClass&>(*this = (*this - delta));
388 inline TimeClass operator+(TimeDelta delta, TimeClass t) {
389 return t + delta;
403 // On Mac & Linux, this value is the delta from the Windows epoch of 1601 to
404 // the Posix delta of 1970. This is used for migrating between the old