Home | History | Annotate | Download | only in time

Lines Matching refs:other

29 // DCHECK_EQ() and other log macros. For human-readable formatting, see
174 TimeDelta& operator=(TimeDelta other) {
175 delta_ = other.delta_;
179 // Computations with other deltas.
180 TimeDelta operator+(TimeDelta other) const {
181 return TimeDelta(time_internal::SaturatedAdd(*this, other.delta_));
183 TimeDelta operator-(TimeDelta other) const {
184 return TimeDelta(time_internal::SaturatedSub(*this, other.delta_));
187 TimeDelta& operator+=(TimeDelta other) {
188 return *this = (*this + other);
190 TimeDelta& operator-=(TimeDelta other) {
191 return *this = (*this - other);
225 bool operator==(TimeDelta other) const {
226 return delta_ == other.delta_;
228 bool operator!=(TimeDelta other) const {
229 return delta_ != other.delta_;
231 bool operator<(TimeDelta other) const {
232 return delta_ < other.delta_;
234 bool operator<=(TimeDelta other) const {
235 return delta_ <= other.delta_;
237 bool operator>(TimeDelta other) const {
238 return delta_ > other.delta_;
240 bool operator>=(TimeDelta other) const {
241 return delta_ >= other.delta_;
315 TimeClass& operator=(TimeClass other) {
316 us_ = other.us_;
321 TimeDelta operator-(TimeClass other) const {
322 return TimeDelta::FromMicroseconds(us_ - other.us_);
342 bool operator==(TimeClass other) const {
343 return us_ == other.us_;
345 bool operator!=(TimeClass other) const {
346 return us_ != other.us_;
348 bool operator<(TimeClass other) const {
349 return us_ < other.us_;
351 bool operator<=(TimeClass other) const {
352 return us_ <= other.us_;
354 bool operator>(TimeClass other) const {
355 return us_ > other.us_;
357 bool operator>=(TimeClass other) const {
358 return us_ >= other.us_;