Home
last modified time | relevance | path

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

12

/bionic/libc/bionic/
Dbionic_time_conversions.cpp41 ts.tv_nsec = tv.tv_usec * 1000; in timespec_from_timeval()
47 ts.tv_nsec = (ms % 1000) * 1000000; in timespec_from_ms()
52 tv.tv_usec = ts.tv_nsec / 1000; in timeval_from_timespec()
60 ts.tv_nsec = abs_ts.tv_nsec - ts.tv_nsec; in timespec_from_absolute_timespec()
61 if (ts.tv_nsec < 0) { in timespec_from_absolute_timespec()
63 ts.tv_nsec += NS_PER_S; in timespec_from_absolute_timespec()
65 if (ts.tv_nsec < 0 || ts.tv_sec < 0) { in timespec_from_absolute_timespec()
Dclock.cpp41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
Dsemaphore.cpp238 …timeout == NULL || abs_timeout->tv_sec < 0 || abs_timeout->tv_nsec < 0 || abs_timeout->tv_nsec >= … in sem_timedwait()
Dlibc_logging.cpp487 uint32_t tv_nsec; member
510 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_write_log()
572 realtime_ts.tv_nsec = ts.tv_nsec; in __libc_android_log_event()
Dpthread_mutex.cpp619 abs_timeout.tv_nsec += (ms % 1000) * 1000000; in pthread_mutex_lock_timeout_np()
620 if (abs_timeout.tv_nsec >= NS_PER_S) { in pthread_mutex_lock_timeout_np()
622 abs_timeout.tv_nsec -= NS_PER_S; 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/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/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/include/machine/
Dtimespec.h42 long tv_nsec; member
/bionic/libc/arch-mips64/bionic/
Dstat.cpp68 st->st_atim.tv_nsec = static_cast<long>(s->st_atime_nsec); in copy_stat()
70 st->st_mtim.tv_nsec = static_cast<long>(s->st_mtime_nsec); in copy_stat()
72 st->st_ctim.tv_nsec = static_cast<long>(s->st_ctime_nsec); in copy_stat()
/bionic/tests/
Dsemaphore_test.cpp96 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms()
97 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()
99 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()
117 ts.tv_nsec = -1; in TEST()
Dtime_test.cpp166 ts.it_value.tv_nsec = value_ns; in SetTime()
168 ts.it_interval.tv_nsec = interval_ns; in SetTime()
223 ts.it_value.tv_nsec = 1; in TEST()
225 ts.it_interval.tv_nsec = 0; in TEST()
460 ts.it_value.tv_nsec = 0; in TEST()
462 ts.it_interval.tv_nsec = 0; in TEST()
487 ts2.tv_nsec -= ts1.tv_nsec; in TEST()
488 if (ts2.tv_nsec < 0) { in TEST()
490 ts2.tv_nsec += NS_PER_S; in TEST()
495 ASSERT_LT(ts2.tv_nsec, 1000000); in TEST()
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()
Dsys_select_test.cpp143 tv.tv_nsec = 0; in TEST()
157 ASSERT_EQ(0, tv.tv_nsec); in TEST()
Dsignal_test.cpp342 timeout.tv_nsec = 0; in TEST()
352 t.tv_sec = t.tv_nsec = 0; in NanoTime()
354 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()
370 timeout.tv_nsec = 1000000; in TEST()
Dgtest_main.cpp225 t.tv_sec = t.tv_nsec = 0; in NanoTime()
227 return static_cast<int64_t>(t.tv_sec) * 1000000000LL + t.tv_nsec; in NanoTime()
580 timeout.tv_sec = timeout.tv_nsec = 0; in HandleSignals()
675 sleep_time.tv_nsec = 1000000; in WaitChildProcs()
Dsys_socket_test.cpp159 ts.tv_nsec = 0; in TestRecvMMsg()
/bionic/libc/include/sys/
Dstat.h127 #define st_atimensec st_atim.tv_nsec
128 #define st_mtimensec st_mtim.tv_nsec
129 #define st_ctimensec st_ctim.tv_nsec
/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.cpp37 t.tv_sec = t.tv_nsec = 0; in NanoTime()
39 return static_cast<uint64_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

12