/bionic/libc/bionic/ |
D | bionic_time_conversions.cpp | 41 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()
|
D | clock.cpp | 41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
|
D | semaphore.cpp | 238 …timeout == NULL || abs_timeout->tv_sec < 0 || abs_timeout->tv_nsec < 0 || abs_timeout->tv_nsec >= … in sem_timedwait()
|
D | libc_logging.cpp | 487 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()
|
D | pthread_mutex.cpp | 619 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()
|
D | getentropy_linux.c | 402 ts.tv_nsec = 1; in getentropy_fallback() 465 cnt += (int)ts.tv_nsec; in getentropy_fallback()
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | ev_timers.c | 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 …]
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | sleep.c | 57 time_to_sleep.tv_nsec = 0; in __sleep() 63 (time_remaining.tv_nsec != 0)); /* round up */ in __sleep()
|
D | usleep.c | 46 time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; in __usleep()
|
/bionic/libc/include/machine/ |
D | timespec.h | 42 long tv_nsec; member
|
/bionic/libc/arch-mips64/bionic/ |
D | stat.cpp | 68 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/ |
D | semaphore_test.cpp | 96 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()
|
D | time_test.cpp | 166 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()
|
D | sys_stat_test.cpp | 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()
|
D | sys_select_test.cpp | 143 tv.tv_nsec = 0; in TEST() 157 ASSERT_EQ(0, tv.tv_nsec); in TEST()
|
D | signal_test.cpp | 342 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()
|
D | gtest_main.cpp | 225 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()
|
D | sys_socket_test.cpp | 159 ts.tv_nsec = 0; in TestRecvMMsg()
|
/bionic/libc/include/sys/ |
D | stat.h | 127 #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/ |
D | time.h | 27 long tv_nsec; member
|
D | firewire-cdev.h | 296 __s32 tv_nsec; member
|
D | coda.h | 74 long tv_nsec; member
|
/bionic/benchmarks/ |
D | Benchmark.cpp | 37 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/ |
D | msm_drm.h | 31 int64_t tv_nsec; member
|
/bionic/libc/kernel/uapi/sound/ |
D | asequencer.h | 166 unsigned int tv_nsec; member
|