Lines Matching refs:other
73 TimeDelta& operator=(const TimeDelta& other) {
74 delta_ = other.delta_;
78 // Computations with other deltas.
79 TimeDelta operator+(const TimeDelta& other) const {
80 return TimeDelta(delta_ + other.delta_);
82 TimeDelta operator-(const TimeDelta& other) const {
83 return TimeDelta(delta_ - other.delta_);
86 TimeDelta& operator+=(const TimeDelta& other) {
87 delta_ += other.delta_;
90 TimeDelta& operator-=(const TimeDelta& other) {
91 delta_ -= other.delta_;
98 double TimesOf(const TimeDelta& other) const {
99 return static_cast<double>(delta_) / static_cast<double>(other.delta_);
101 double PercentOf(const TimeDelta& other) const {
102 return TimesOf(other) * 100.0;
106 // with ints, and additive operations with other deltas.
121 int64_t operator/(const TimeDelta& other) const {
122 return delta_ / other.delta_;
126 bool operator==(const TimeDelta& other) const {
127 return delta_ == other.delta_;
129 bool operator!=(const TimeDelta& other) const {
130 return delta_ != other.delta_;
132 bool operator<(const TimeDelta& other) const {
133 return delta_ < other.delta_;
135 bool operator<=(const TimeDelta& other) const {
136 return delta_ <= other.delta_;
138 bool operator>(const TimeDelta& other) const {
139 return delta_ > other.delta_;
141 bool operator>=(const TimeDelta& other) const {
142 return delta_ >= other.delta_;
229 Time& operator=(const Time& other) {
230 us_ = other.us_;
235 TimeDelta operator-(const Time& other) const {
236 return TimeDelta::FromMicroseconds(us_ - other.us_);
258 bool operator==(const Time& other) const {
259 return us_ == other.us_;
261 bool operator!=(const Time& other) const {
262 return us_ != other.us_;
264 bool operator<(const Time& other) const {
265 return us_ < other.us_;
267 bool operator<=(const Time& other) const {
268 return us_ <= other.us_;
270 bool operator>(const Time& other) const {
271 return us_ > other.us_;
273 bool operator>=(const Time& other) const {
274 return us_ >= other.us_;
340 TimeTicks& operator=(const TimeTicks other) {
341 ticks_ = other.ticks_;
346 TimeDelta operator-(const TimeTicks other) const {
347 return TimeDelta::FromMicroseconds(ticks_ - other.ticks_);
369 bool operator==(const TimeTicks& other) const {
370 return ticks_ == other.ticks_;
372 bool operator!=(const TimeTicks& other) const {
373 return ticks_ != other.ticks_;
375 bool operator<(const TimeTicks& other) const {
376 return ticks_ < other.ticks_;
378 bool operator<=(const TimeTicks& other) const {
379 return ticks_ <= other.ticks_;
381 bool operator>(const TimeTicks& other) const {
382 return ticks_ > other.ticks_;
384 bool operator>=(const TimeTicks& other) const {
385 return ticks_ >= other.ticks_;