Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 21 of 21) sorted by relevance

/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c78 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 …]
/bionic/libc/bionic/
Dpthread_internals.cpp76 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()
Dbionic_time_conversions.cpp39 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()
Dsemaphore.c285 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()
Dclock.cpp41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
Dlibc_logging.cpp485 uint32_t tv_nsec; member
509 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_write_log()
571 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_android_log_event()
Dpthread_mutex.cpp728 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()
Dgetentropy_linux.c402 ts.tv_nsec = 1; in getentropy_fallback()
465 cnt += (int)ts.tv_nsec; in getentropy_fallback()
/bionic/tests/
Dsys_stat_test.cpp35 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()
Dtime_test.cpp139 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()
Dsys_select_test.cpp143 tv.tv_nsec = 0; in TEST()
157 ASSERT_EQ(0, tv.tv_nsec); in TEST()
Dsys_socket_test.cpp181 ts.tv_nsec = 0; in TestRecvMMsg()
Dpthread_test.cpp808 ts.tv_nsec += 1; in TEST()
815 ts.tv_nsec += 1; in TEST()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dsleep.c57 time_to_sleep.tv_nsec = 0; in __sleep()
63 (time_remaining.tv_nsec != 0)); /* round up */ in __sleep()
Dusleep.c46 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; in __usleep()
/bionic/libc/kernel/uapi/linux/
Dtime.h27 long tv_nsec; member
Dfirewire-cdev.h296 __s32 tv_nsec; member
Dcoda.h74 long tv_nsec; member
/bionic/benchmarks/
Dbenchmark_main.cpp53 t.tv_sec = t.tv_nsec = 0; in NanoTime()
55 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()
/bionic/libc/kernel/uapi/drm/
Dmsm_drm.h31 int64_t tv_nsec; member
/bionic/libc/kernel/uapi/sound/
Dasequencer.h166 unsigned int tv_nsec; member