Searched refs:tv_nsec (Results 1 – 21 of 21) sorted by relevance
78 x.tv_nsec = nsec; in evConsTime()87 x.tv_nsec = addend1.tv_nsec + addend2.tv_nsec; in evAddTime()88 if (x.tv_nsec >= BILLION) { in evAddTime()90 x.tv_nsec -= BILLION; in evAddTime()100 if (minuend.tv_nsec >= subtrahend.tv_nsec) in evSubTime()101 x.tv_nsec = minuend.tv_nsec - subtrahend.tv_nsec; in evSubTime()103 x.tv_nsec = BILLION - subtrahend.tv_nsec + minuend.tv_nsec; in evSubTime()118 n = a.tv_nsec - b.tv_nsec; in evCmpTime()171 ts.tv_nsec = tv.tv_usec * 1000; in evTimeSpec()180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000); in evTimeVal()[all …]
76 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec; in __timespec_from_absolute()77 if (ts->tv_nsec < 0) { in __timespec_from_absolute()79 ts->tv_nsec += 1000000000; in __timespec_from_absolute()81 if ((ts->tv_nsec < 0) || (ts->tv_sec < 0)) { in __timespec_from_absolute()
39 ts.tv_nsec = tv.tv_usec * 1000; in timespec_from_timeval()45 ts.tv_nsec = (ms % 1000) * 1000000; in timespec_from_ms()50 tv.tv_usec = ts.tv_nsec / 1000; in timeval_from_timespec()
285 abs_timeout->tv_nsec < 0 || in sem_timedwait()286 abs_timeout->tv_nsec >= 1000000000) in sem_timedwait()301 ts.tv_nsec = abs_timeout->tv_nsec - ts.tv_nsec; in sem_timedwait()302 if (ts.tv_nsec < 0) { in sem_timedwait()303 ts.tv_nsec += 1000000000; in sem_timedwait()307 if (ts.tv_sec < 0 || ts.tv_nsec < 0) { in sem_timedwait()
41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
485 uint32_t tv_nsec; member509 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_write_log()571 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_android_log_event()
728 abs_timeout.tv_nsec += (ms % 1000) * 1000000; in pthread_mutex_lock_timeout_np()729 if (abs_timeout.tv_nsec >= 1000000000) { in pthread_mutex_lock_timeout_np()731 abs_timeout.tv_nsec -= 1000000000; in pthread_mutex_lock_timeout_np()
402 ts.tv_nsec = 1; in getentropy_fallback()465 cnt += (int)ts.tv_nsec; in getentropy_fallback()
35 times[0].tv_nsec = 0; in TEST()37 times[1].tv_nsec = 0; in TEST()51 times[0].tv_nsec = 0; in TEST()53 times[1].tv_nsec = 0; in TEST()
139 ts.it_value.tv_nsec = value_ns; in SetTime()141 ts.it_interval.tv_nsec = interval_ns; in SetTime()195 ts.it_value.tv_nsec = 1; in TEST()197 ts.it_interval.tv_nsec = 0; in TEST()369 ts.it_value.tv_nsec = 100; in TEST()371 ts.it_interval.tv_nsec = 0; in TEST()396 ts2.tv_nsec -= ts1.tv_nsec; in TEST()397 if (ts2.tv_nsec < 0) { in TEST()399 ts2.tv_nsec += 1000000000; in TEST()404 ASSERT_LT(ts2.tv_nsec, 1000000); in TEST()
143 tv.tv_nsec = 0; in TEST()157 ASSERT_EQ(0, tv.tv_nsec); in TEST()
181 ts.tv_nsec = 0; in TestRecvMMsg()
808 ts.tv_nsec += 1; in TEST()815 ts.tv_nsec += 1; in TEST()
57 time_to_sleep.tv_nsec = 0; in __sleep()63 (time_remaining.tv_nsec != 0)); /* round up */ in __sleep()
46 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; in __usleep()
27 long tv_nsec; member
296 __s32 tv_nsec; member
74 long tv_nsec; member
53 t.tv_sec = t.tv_nsec = 0; in NanoTime()55 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()
31 int64_t tv_nsec; member
166 unsigned int tv_nsec; member