Lines Matching refs:tv_sec
107 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec()
115 ts.tv_sec = static_cast<unsigned>(delta_ / Time::kMicrosecondsPerSecond); in ToMachTimespec()
130 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec()
137 ts.tv_sec = static_cast<time_t>(delta_ / Time::kMicrosecondsPerSecond); in ToTimespec()
272 if (ts.tv_nsec == 0 && ts.tv_sec == 0) { in FromTimespec()
276 ts.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimespec()
279 return Time(ts.tv_sec * kMicrosecondsPerSecond + in FromTimespec()
287 ts.tv_sec = 0; in ToTimespec()
292 ts.tv_sec = std::numeric_limits<time_t>::max(); in ToTimespec()
296 ts.tv_sec = static_cast<time_t>(us_ / kMicrosecondsPerSecond); in ToTimespec()
305 if (tv.tv_usec == 0 && tv.tv_sec == 0) { in FromTimeval()
309 tv.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimeval()
312 return Time(tv.tv_sec * kMicrosecondsPerSecond + tv.tv_usec); in FromTimeval()
319 tv.tv_sec = 0; in ToTimeval()
324 tv.tv_sec = std::numeric_limits<time_t>::max(); in ToTimeval()
328 tv.tv_sec = static_cast<time_t>(us_ / kMicrosecondsPerSecond); in ToTimeval()
556 ticks = (ts.tv_sec * Time::kMicrosecondsPerSecond + in HighResolutionNow()
596 return ((int64_t)ts.tv_sec * kNsecPerSec) + ts.tv_nsec; in Now()