Lines Matching refs:TimeDelta

29 TimeDelta TimeDelta::FromDays(int days) {  in FromDays()
30 return TimeDelta(days * Time::kMicrosecondsPerDay); in FromDays()
34 TimeDelta TimeDelta::FromHours(int hours) { in FromHours()
35 return TimeDelta(hours * Time::kMicrosecondsPerHour); in FromHours()
39 TimeDelta TimeDelta::FromMinutes(int minutes) { in FromMinutes()
40 return TimeDelta(minutes * Time::kMicrosecondsPerMinute); in FromMinutes()
44 TimeDelta TimeDelta::FromSeconds(int64_t seconds) { in FromSeconds()
45 return TimeDelta(seconds * Time::kMicrosecondsPerSecond); in FromSeconds()
49 TimeDelta TimeDelta::FromMilliseconds(int64_t milliseconds) { in FromMilliseconds()
50 return TimeDelta(milliseconds * Time::kMicrosecondsPerMillisecond); in FromMilliseconds()
54 TimeDelta TimeDelta::FromNanoseconds(int64_t nanoseconds) { in FromNanoseconds()
55 return TimeDelta(nanoseconds / Time::kNanosecondsPerMicrosecond); in FromNanoseconds()
59 int TimeDelta::InDays() const { in InDays()
64 int TimeDelta::InHours() const { in InHours()
69 int TimeDelta::InMinutes() const { in InMinutes()
74 double TimeDelta::InSecondsF() const { in InSecondsF()
79 int64_t TimeDelta::InSeconds() const { in InSeconds()
84 double TimeDelta::InMillisecondsF() const { in InMillisecondsF()
89 int64_t TimeDelta::InMilliseconds() const { in InMilliseconds()
94 int64_t TimeDelta::InNanoseconds() const { in InNanoseconds()
101 TimeDelta TimeDelta::FromMachTimespec(struct mach_timespec ts) { in FromMachTimespec()
105 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec()
110 struct mach_timespec TimeDelta::ToMachTimespec() const { in ToMachTimespec()
124 TimeDelta TimeDelta::FromTimespec(struct timespec ts) { in FromTimespec()
128 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec()
133 struct timespec TimeDelta::ToTimespec() const { in ToTimespec()
155 const TimeDelta kMaxElapsedTime = TimeDelta::FromMinutes(1); in Now()
165 TimeDelta elapsed = ticks - initial_ticks_; in Now()