Lines Matching refs:Time
46 absolute_micros *= v8::base::Time::kMicrosecondsPerSecond; in ComputeThreadTicks()
76 result *= v8::base::Time::kMicrosecondsPerSecond;
79 result += (tc.stime / v8::base::Time::kNanosecondsPerMicrosecond);
81 result += (ts.tv_nsec / v8::base::Time::kNanosecondsPerMicrosecond);
84 result += (ts.tv_nsec / v8::base::Time::kNanosecondsPerMicrosecond);
118 return TimeDelta(days * Time::kMicrosecondsPerDay); in FromDays()
123 return TimeDelta(hours * Time::kMicrosecondsPerHour); in FromHours()
128 return TimeDelta(minutes * Time::kMicrosecondsPerMinute); in FromMinutes()
133 return TimeDelta(seconds * Time::kMicrosecondsPerSecond); in FromSeconds()
138 return TimeDelta(milliseconds * Time::kMicrosecondsPerMillisecond); in FromMilliseconds()
143 return TimeDelta(nanoseconds / Time::kNanosecondsPerMicrosecond); in FromNanoseconds()
148 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay); in InDays()
153 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour); in InHours()
158 return static_cast<int>(delta_ / Time::kMicrosecondsPerMinute); in InMinutes()
163 return static_cast<double>(delta_) / Time::kMicrosecondsPerSecond; in InSecondsF()
168 return delta_ / Time::kMicrosecondsPerSecond; in InSeconds()
173 return static_cast<double>(delta_) / Time::kMicrosecondsPerMillisecond; in InMillisecondsF()
178 return delta_ / Time::kMicrosecondsPerMillisecond; in InMilliseconds()
183 return delta_ * Time::kNanosecondsPerMicrosecond; in InNanoseconds()
192 static_cast<long>(Time::kNanosecondsPerSecond)); // NOLINT in FromMachTimespec()
193 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec()
194 ts.tv_nsec / Time::kNanosecondsPerMicrosecond); in FromMachTimespec()
201 ts.tv_sec = static_cast<unsigned>(delta_ / Time::kMicrosecondsPerSecond); in ToMachTimespec()
202 ts.tv_nsec = (delta_ % Time::kMicrosecondsPerSecond) * in ToMachTimespec()
203 Time::kNanosecondsPerMicrosecond; in ToMachTimespec()
215 static_cast<long>(Time::kNanosecondsPerSecond)); // NOLINT in FromTimespec()
216 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec()
217 ts.tv_nsec / Time::kNanosecondsPerMicrosecond); in FromTimespec()
223 ts.tv_sec = static_cast<time_t>(delta_ / Time::kMicrosecondsPerSecond); in ToTimespec()
224 ts.tv_nsec = (delta_ % Time::kMicrosecondsPerSecond) * in ToTimespec()
225 Time::kNanosecondsPerMicrosecond; in ToTimespec()
241 Time Now() { in Now()
249 Time time = GetSystemTime(); in Now()
263 Time NowFromSystemTime() { in NowFromSystemTime()
275 static Time GetSystemTime() { in GetSystemTime()
278 return Time::FromFiletime(ft); in GetSystemTime()
282 Time initial_time_;
292 Time Time::Now() { in Now()
297 Time Time::NowFromSystemTime() { in NowFromSystemTime()
306 Time Time::FromFiletime(FILETIME ft) { in FromFiletime()
308 return Time(); in FromFiletime()
316 return Time(us - kTimeToEpochInMicroseconds); in FromFiletime()
320 FILETIME Time::ToFiletime() const { in ToFiletime()
341 Time Time::Now() { in Now()
350 Time Time::NowFromSystemTime() { in NowFromSystemTime()
355 Time Time::FromTimespec(struct timespec ts) { in FromTimespec()
359 return Time(); in FromTimespec()
365 return Time(ts.tv_sec * kMicrosecondsPerSecond + in FromTimespec()
370 struct timespec Time::ToTimespec() const { in ToTimespec()
388 Time Time::FromTimeval(struct timeval tv) { in FromTimeval()
392 return Time(); in FromTimeval()
398 return Time(tv.tv_sec * kMicrosecondsPerSecond + tv.tv_usec); in FromTimeval()
402 struct timeval Time::ToTimeval() const { in ToTimeval()
422 Time Time::FromJsTime(double ms_since_epoch) { in FromJsTime()
428 return Time( in FromJsTime()
433 double Time::ToJsTime() const { in ToJsTime()
446 std::ostream& operator<<(std::ostream& os, const Time& time) { in operator <<()
504 int64_t ticks = (whole_seconds * Time::kMicrosecondsPerSecond) + in Now()
505 ((leftover_ticks * Time::kMicrosecondsPerSecond) / ticks_per_second_); in Now()
543 return static_cast<int64_t>(ms * Time::kMicrosecondsPerMillisecond); in Now()
620 ticks = (mach_absolute_time() / Time::kNanosecondsPerMicrosecond * in HighResolutionNow()
623 ticks = (gethrtime() / Time::kNanosecondsPerMicrosecond); in HighResolutionNow()
659 return ThreadTicks(gethrvtime() / Time::kNanosecondsPerMicrosecond); in Now()
685 static_cast<int64_t>(thread_time_seconds * Time::kMicrosecondsPerSecond)); in GetForThread()