Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 37) 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()
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()
Dsys_epoll.cpp79 kts.tv_nsec = timeout->tv_nsec; in epoll_pwait2_64()
Dusleep.cpp36 ts.tv_nsec = (us % 1000000) * 1000; in usleep()
Dclock.cpp39 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/
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/private/
Dbionic_time_conversions.h59 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/
Dstat.h112 #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
Dtime.h104 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
108 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/bionic/libc/kernel/uapi/linux/
Dtime_types.h13 long long tv_nsec; member
21 long tv_nsec; member
Dstat.h44 __u32 tv_nsec; member
/bionic/tests/
Dpoll_test.cpp46 timespec ts = { .tv_nsec = 100 }; in TEST()
55 timespec ts = { .tv_nsec = 100 }; in TEST()
Dsemaphore_test.cpp103 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()
Dsys_epoll_test.cpp65 timespec ts = {.tv_nsec = 500}; in TEST()
92 timespec ts = {.tv_nsec = 500}; in TEST()
110 timespec ts = {.tv_nsec = 500}; in TEST()
Dtime_test.cpp630 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 …]
Dsys_stat_test.cpp44 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()
Dsys_select_test.cpp164 tv.tv_nsec = 0; in TEST()
178 ASSERT_EQ(0, tv.tv_nsec); in TEST()
Dsys_sem_test.cpp63 timespec ts = { .tv_sec = 0, .tv_nsec = 100 }; in TEST()
Dpthread_test.cpp1118 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/
Dtimespec.h50 long tv_nsec; member
/bionic/libc/dns/resolv/
Dres_stats.c32 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/
Dcs-protocol.h39 __u32 tv_nsec; member
/bionic/libc/async_safe/
Dasync_safe_log.cpp528 uint32_t tv_nsec; member
549 realtime_ts.tv_nsec = ts.tv_nsec; in async_safe_write_log()
/bionic/tests/headers/posix/
Dtime_h.c60 STRUCT_MEMBER(struct timespec, long, tv_nsec); in time_h()
/bionic/libc/kernel/uapi/drm/
Detnaviv_drm.h15 __s64 tv_nsec; member
Dmsm_drm.h22 __s64 tv_nsec; member

12