Lines Matching refs:tv
51 timeval tv = CurrentTimeVal(); in CurrentNtp() local
53 Adjust(tv, &seconds, µseconds_in_seconds); in CurrentNtp()
60 timeval tv = CurrentTimeVal(); in CurrentNtpInMilliseconds() local
63 Adjust(tv, &seconds, µseconds_in_seconds); in CurrentNtpInMilliseconds()
71 static void Adjust(const timeval& tv, uint32_t* adjusted_s, in Adjust() argument
73 *adjusted_s = tv.tv_sec + kNtpJan1970; in Adjust()
74 *adjusted_us_in_s = tv.tv_usec / 1e6; in Adjust()
110 struct timeval tv; in CurrentTimeVal() local
122 tv.tv_sec = (uint32_t)(Time / (uint64_t)10000000); in CurrentTimeVal()
123 tv.tv_usec = (uint32_t)((Time % (uint64_t)10000000) / 10); in CurrentTimeVal()
124 return tv; in CurrentTimeVal()
197 struct timeval tv; in CurrentTimeVal() local
201 gettimeofday(&tv, &tz); in CurrentTimeVal()
202 return tv; in CurrentTimeVal()