Home
last modified time | relevance | path

Searched refs:us_ (Results 1 – 9 of 9) sorted by relevance

/external/v8/src/base/platform/
Dtime.h201 return us_ == 0; in IsNull()
205 bool IsMax() const { return us_ == std::numeric_limits<int64_t>::max(); } in IsMax()
210 int64_t ToInternalValue() const { return us_; } in ToInternalValue()
213 us_ = other.us_;
219 return TimeDelta::FromMicroseconds(us_ - other.us_);
224 return TimeClass(bits::SignedSaturatedAdd64(delta.delta_, us_));
227 return TimeClass(-bits::SignedSaturatedSub64(delta.delta_, us_));
240 return us_ == other.us_;
243 return us_ != other.us_;
246 return us_ < other.us_;
[all …]
Dtime.cc321 DCHECK(us_ >= 0); in ToFiletime()
333 uint64_t us = static_cast<uint64_t>(us_ + kTimeToEpochInMicroseconds) * 10; in ToFiletime()
382 ts.tv_sec = static_cast<time_t>(us_ / kMicrosecondsPerSecond); in ToTimespec()
383 ts.tv_nsec = (us_ % kMicrosecondsPerSecond) * kNanosecondsPerMicrosecond; in ToTimespec()
414 tv.tv_sec = static_cast<time_t>(us_ / kMicrosecondsPerSecond); in ToTimeval()
415 tv.tv_usec = us_ % kMicrosecondsPerSecond; in ToTimeval()
442 return static_cast<double>(us_) / kMicrosecondsPerMillisecond; in ToJsTime()
/external/libweave/third_party/chromium/base/time/
Dtime.h304 return us_ == 0; in is_null()
308 bool is_max() const { return us_ == std::numeric_limits<int64_t>::max(); } in is_max()
313 int64_t ToInternalValue() const { return us_; } in ToInternalValue()
316 us_ = other.us_;
322 return TimeDelta::FromMicroseconds(us_ - other.us_);
327 return TimeClass(time_internal::SaturatedAdd(delta, us_));
330 return TimeClass(-time_internal::SaturatedSub(delta, us_));
343 return us_ == other.us_;
346 return us_ != other.us_;
349 return us_ < other.us_;
[all …]
Dtime.cc156 if (std::numeric_limits<int64_t>::max() - kTimeTToMicrosecondsOffset <= us_) { in ToTimeT()
158 "value " << us_ << " to time_t."; in ToTimeT()
161 return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond; in ToTimeT()
178 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToDoubleT()
208 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToJsTime()
221 return ((us_ - kTimeTToMicrosecondsOffset) / in ToJavaTime()
228 time.us_ = kTimeTToMicrosecondsOffset; in UnixEpoch()
Dtime_posix.cc158 int64_t microseconds = us_ - kWindowsEpochDeltaMicroseconds; in Explode()
337 int64_t us = us_ - kTimeTToMicrosecondsOffset; in ToTimeVal()
/external/libchrome/base/time/
Dtime.h304 return us_ == 0; in is_null()
308 bool is_max() const { return us_ == std::numeric_limits<int64_t>::max(); } in is_max()
313 int64_t ToInternalValue() const { return us_; } in ToInternalValue()
316 us_ = other.us_;
322 return TimeDelta::FromMicroseconds(us_ - other.us_);
327 return TimeClass(time_internal::SaturatedAdd(delta, us_));
330 return TimeClass(-time_internal::SaturatedSub(delta, us_));
343 return us_ == other.us_;
346 return us_ != other.us_;
349 return us_ < other.us_;
[all …]
Dtime.cc159 if (std::numeric_limits<int64_t>::max() - kTimeTToMicrosecondsOffset <= us_) { in ToTimeT()
161 "value " << us_ << " to time_t."; in ToTimeT()
164 return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond; in ToTimeT()
181 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToDoubleT()
211 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToJsTime()
224 return ((us_ - kTimeTToMicrosecondsOffset) / in ToJavaTime()
231 time.us_ = kTimeTToMicrosecondsOffset; in UnixEpoch()
Dtime_mac.cc158 return (static_cast<CFAbsoluteTime>(us_ - kWindowsEpochDeltaMicroseconds) / in ToCFAbsoluteTime()
190 int64_t microsecond = us_ % kMicrosecondsPerSecond; in Explode()
193 CFAbsoluteTime seconds = ((us_ - microsecond) / kMicrosecondsPerSecond) - in Explode()
Dtime_posix.cc178 int64_t microseconds = us_ - kWindowsEpochDeltaMicroseconds; in Explode()
357 int64_t us = us_ - kTimeTToMicrosecondsOffset; in ToTimeVal()