Lines Matching refs:other
85 TimeDelta& operator=(const TimeDelta& other) {
86 delta_ = other.delta_;
90 // Computations with other deltas.
91 TimeDelta operator+(const TimeDelta& other) const {
92 return TimeDelta(delta_ + other.delta_);
94 TimeDelta operator-(const TimeDelta& other) const {
95 return TimeDelta(delta_ - other.delta_);
98 TimeDelta& operator+=(const TimeDelta& other) {
99 delta_ += other.delta_;
102 TimeDelta& operator-=(const TimeDelta& other) {
103 delta_ -= other.delta_;
110 double TimesOf(const TimeDelta& other) const {
111 return static_cast<double>(delta_) / static_cast<double>(other.delta_);
113 double PercentOf(const TimeDelta& other) const {
114 return TimesOf(other) * 100.0;
118 // with ints, and additive operations with other deltas.
133 int64_t operator/(const TimeDelta& other) const {
134 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_;
144 bool operator<(const TimeDelta& other) const {
145 return delta_ < other.delta_;
147 bool operator<=(const TimeDelta& other) const {
148 return delta_ <= other.delta_;
150 bool operator>(const TimeDelta& other) const {
151 return delta_ > other.delta_;
153 bool operator>=(const TimeDelta& other) const {
154 return delta_ >= other.delta_;
213 TimeClass& operator=(TimeClass other) {
214 us_ = other.us_;
219 TimeDelta operator-(TimeClass other) const {
220 return TimeDelta::FromMicroseconds(us_ - other.us_);
240 bool operator==(TimeClass other) const {
241 return us_ == other.us_;
243 bool operator!=(TimeClass other) const {
244 return us_ != other.us_;
246 bool operator<(TimeClass other) const {
247 return us_ < other.us_;
249 bool operator<=(TimeClass other) const {
250 return us_ <= other.us_;
252 bool operator>(TimeClass other) const {
253 return us_ > other.us_;
255 bool operator>=(TimeClass other) const {
256 return us_ >= other.us_;