/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() 65 new_time.tv_nsec = old_time.tv_nsec - old_clock.tv_nsec + new_clock.tv_nsec; in convert_timespec_clocks() 68 if (new_time.tv_nsec >= NS_PER_S) { in convert_timespec_clocks() 69 new_time.tv_nsec -= NS_PER_S; in convert_timespec_clocks() 71 } else if (new_time.tv_nsec < 0) { in convert_timespec_clocks() 72 new_time.tv_nsec += NS_PER_S; in convert_timespec_clocks()
|
D | sys_epoll.cpp | 79 kts.tv_nsec = timeout->tv_nsec; in epoll_pwait2_64()
|
D | usleep.cpp | 36 ts.tv_nsec = (us % 1000000) * 1000; in usleep()
|
D | clock.cpp | 39 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
|
/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/private/ |
D | bionic_time_conversions.h | 59 if (ts->tv_nsec < 0 || ts->tv_nsec >= NS_PER_S) { in check_timespec() 72 abs_ts.tv_nsec += ts.tv_nsec; in absolute_timespec_from_timespec() 73 if (abs_ts.tv_nsec >= NS_PER_S) { in absolute_timespec_from_timespec() 74 abs_ts.tv_nsec -= NS_PER_S; in absolute_timespec_from_timespec()
|
/bionic/libc/include/sys/ |
D | stat.h | 112 #define st_atimensec st_atim.tv_nsec 113 #define st_mtimensec st_mtim.tv_nsec 114 #define st_ctimensec st_ctim.tv_nsec 116 #define st_atime_nsec st_atim.tv_nsec 117 #define st_mtime_nsec st_mtim.tv_nsec 118 #define st_ctime_nsec st_ctim.tv_nsec
|
D | time.h | 104 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 108 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/bionic/libc/kernel/uapi/linux/ |
D | time_types.h | 13 long long tv_nsec; member 21 long tv_nsec; member
|
D | stat.h | 44 __u32 tv_nsec; member
|
/bionic/tests/ |
D | poll_test.cpp | 46 timespec ts = { .tv_nsec = 100 }; in TEST() 55 timespec ts = { .tv_nsec = 100 }; in TEST()
|
D | semaphore_test.cpp | 103 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms() 104 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms() 106 ts.tv_nsec -= NS_PER_S; in timespec_add_ms() 125 ts.tv_nsec = -1; in sem_timedwait_helper() 129 ts.tv_nsec = NS_PER_S; in sem_timedwait_helper() 134 ts.tv_nsec = NS_PER_S - 1; in sem_timedwait_helper()
|
D | sys_epoll_test.cpp | 65 timespec ts = {.tv_nsec = 500}; in TEST() 92 timespec ts = {.tv_nsec = 500}; in TEST() 110 timespec ts = {.tv_nsec = 500}; in TEST()
|
D | time_test.cpp | 630 ts.it_value.tv_nsec = value_ns; in SetTime() 632 ts.it_interval.tv_nsec = interval_ns; in SetTime() 684 ts.it_value.tv_nsec = 1; in TEST() 686 ts.it_interval.tv_nsec = 0; in TEST() 924 ts.it_value.tv_nsec = 0; in TEST() 926 ts.it_interval.tv_nsec = 0; in TEST() 960 ASSERT_LE(ts0.tv_nsec, ts1.tv_nsec); in TEST() 964 ASSERT_LE(ts1.tv_nsec, ts2.tv_nsec); in TEST() 1003 ASSERT_EQ(1, ts.tv_nsec); in TEST() 1010 ASSERT_EQ(1, ts.tv_nsec); in TEST() [all …]
|
D | sys_stat_test.cpp | 44 times[0].tv_nsec = 0; in TEST() 46 times[1].tv_nsec = 0; in TEST() 60 times[0].tv_nsec = 0; in TEST() 62 times[1].tv_nsec = 0; in TEST()
|
D | sys_select_test.cpp | 164 tv.tv_nsec = 0; in TEST() 178 ASSERT_EQ(0, tv.tv_nsec); in TEST()
|
D | sys_sem_test.cpp | 63 timespec ts = { .tv_sec = 0, .tv_nsec = 100 }; in TEST()
|
D | pthread_test.cpp | 1118 ts.tv_nsec = -1; in pthread_rwlock_wakeup_timeout_helper() 1120 ts.tv_nsec = NS_PER_S; in pthread_rwlock_wakeup_timeout_helper() 1122 ts.tv_nsec = NS_PER_S - 1; in pthread_rwlock_wakeup_timeout_helper() 1732 ts.tv_nsec = -1; in pthread_cond_timedwait_timeout_helper() 1734 ts.tv_nsec = NS_PER_S; in pthread_cond_timedwait_timeout_helper() 1736 ts.tv_nsec = NS_PER_S - 1; in pthread_cond_timedwait_timeout_helper() 2432 ts.tv_nsec = -1; in pthread_mutex_timedlock_helper() 2434 ts.tv_nsec = NS_PER_S; in pthread_mutex_timedlock_helper() 2436 ts.tv_nsec = NS_PER_S - 1; in pthread_mutex_timedlock_helper() 2442 const int64_t start_ns = ts.tv_sec * NS_PER_S + ts.tv_nsec; in pthread_mutex_timedlock_helper() [all …]
|
/bionic/libc/include/bits/ |
D | timespec.h | 50 long tv_nsec; member
|
/bionic/libc/dns/resolv/ |
D | res_stats.c | 32 long ms0 = t0->tv_sec * 1000 + t0->tv_nsec / 1000000; in _res_stats_calculate_rtt() 33 long ms1 = t1->tv_sec * 1000 + t1->tv_nsec / 1000000; in _res_stats_calculate_rtt()
|
/bionic/libc/kernel/uapi/linux/hsi/ |
D | cs-protocol.h | 39 __u32 tv_nsec; member
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 528 uint32_t tv_nsec; member 549 realtime_ts.tv_nsec = ts.tv_nsec; in async_safe_write_log()
|
/bionic/tests/headers/posix/ |
D | time_h.c | 60 STRUCT_MEMBER(struct timespec, long, tv_nsec); in time_h()
|
/bionic/libc/kernel/uapi/drm/ |
D | etnaviv_drm.h | 15 __s64 tv_nsec; member
|
D | msm_drm.h | 22 __s64 tv_nsec; member
|