Lines Matching refs:tv_sec
105 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec()
113 ts.tv_sec = delta_ / Time::kMicrosecondsPerSecond; in ToMachTimespec()
128 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromTimespec()
135 ts.tv_sec = delta_ / Time::kMicrosecondsPerSecond; in ToTimespec()
270 if (ts.tv_nsec == 0 && ts.tv_sec == 0) { in FromTimespec()
274 ts.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimespec()
277 return Time(ts.tv_sec * kMicrosecondsPerSecond + in FromTimespec()
285 ts.tv_sec = 0; in ToTimespec()
290 ts.tv_sec = std::numeric_limits<time_t>::max(); in ToTimespec()
294 ts.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimespec()
303 if (tv.tv_usec == 0 && tv.tv_sec == 0) { in FromTimeval()
307 tv.tv_sec == std::numeric_limits<time_t>::max()) { in FromTimeval()
310 return Time(tv.tv_sec * kMicrosecondsPerSecond + tv.tv_usec); in FromTimeval()
317 tv.tv_sec = 0; in ToTimeval()
322 tv.tv_sec = std::numeric_limits<time_t>::max(); in ToTimeval()
326 tv.tv_sec = us_ / kMicrosecondsPerSecond; in ToTimeval()
557 ticks = (tv.tv_sec * Time::kMicrosecondsPerSecond + tv.tv_usec); in HighResolutionNow()
563 ticks = (ts.tv_sec * Time::kMicrosecondsPerSecond + in HighResolutionNow()
603 return ((int64_t)ts.tv_sec * kNsecPerSec) + ts.tv_nsec; in Now()