Home
last modified time | relevance | path

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

/external/chromium_org/v8/src/platform/
Dtime.h176 Time() : us_(0) {} in Time()
179 bool IsNull() const { return us_ == 0; } in IsNull()
182 bool IsMax() const { return us_ == std::numeric_limits<int64_t>::max(); } in IsMax()
208 return us_; in ToInternalValue()
229 us_ = other.us_;
235 return TimeDelta::FromMicroseconds(us_ - other.us_);
240 us_ += delta.InMicroseconds();
244 us_ -= delta.InMicroseconds();
250 return Time(us_ + delta.InMicroseconds());
253 return Time(us_ - delta.InMicroseconds());
[all …]
Dtime.cc231 ASSERT(us_ >= 0); in ToFiletime()
243 uint64_t us = static_cast<uint64_t>(us_ + kTimeToEpochInMicroseconds) * 10; in ToFiletime()
292 ts.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimespec()
293 ts.tv_nsec = (us_ % kMicrosecondsPerSecond) * kNanosecondsPerMicrosecond; in ToTimespec()
324 tv.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimeval()
325 tv.tv_usec = us_ % kMicrosecondsPerSecond; in ToTimeval()
352 return static_cast<double>(us_) / kMicrosecondsPerMillisecond; in ToJsTime()
/external/chromium_org/base/time/
Dtime.h256 Time() : us_(0) { in Time()
261 return us_ == 0; in is_null()
266 return us_ == std::numeric_limits<int64>::max(); in is_max()
398 return us_; in ToInternalValue()
415 us_ = other.us_;
421 return TimeDelta(us_ - other.us_);
426 us_ += delta.delta_;
430 us_ -= delta.delta_;
436 return Time(us_ + delta.delta_);
439 return Time(us_ - delta.delta_);
[all …]
Dtime.cc120 if (std::numeric_limits<int64>::max() - kTimeTToMicrosecondsOffset <= us_) { in ToTimeT()
122 "value " << us_ << " to time_t."; in ToTimeT()
125 return (us_ - kTimeTToMicrosecondsOffset) / kMicrosecondsPerSecond; in ToTimeT()
146 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToDoubleT()
178 return (static_cast<double>(us_ - kTimeTToMicrosecondsOffset) / in ToJsTime()
191 return ((us_ - kTimeTToMicrosecondsOffset) / in ToJavaTime()
198 time.us_ = kTimeTToMicrosecondsOffset; in UnixEpoch()
Dtime_mac.cc153 return (static_cast<CFAbsoluteTime>(us_ - kWindowsEpochDeltaMicroseconds) / in ToCFAbsoluteTime()
185 int64 microsecond = us_ % kMicrosecondsPerSecond; in Explode()
188 CFAbsoluteTime seconds = ((us_ - microsecond) / kMicrosecondsPerSecond) - in Explode()
Dtime_win.cc162 MicrosecondsToFileTime(us_, &utc_ft); in ToFileTime()
241 if (us_ < 0LL) { in Explode()
249 MicrosecondsToFileTime(us_, &utc_ft); in Explode()
Dtime_posix.cc165 int64 microseconds = us_ - kWindowsEpochDeltaMicroseconds; in Explode()
380 int64 us = us_ - kTimeTToMicrosecondsOffset; in ToTimeVal()