Home
last modified time | relevance | path

Searched refs:NS_PER_S (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/private/
Dbionic_time_conversions.h56 if (ts->tv_nsec < 0 || ts->tv_nsec >= NS_PER_S) { in check_timespec()
70 if (abs_ts.tv_nsec >= NS_PER_S) { in absolute_timespec_from_timespec()
71 abs_ts.tv_nsec -= NS_PER_S; in absolute_timespec_from_timespec()
Dbionic_constants.h20 #define NS_PER_S 1000000000 macro
/bionic/libc/bionic/
Dbionic_time_conversions.cpp65 if (monotonic_time.tv_nsec >= NS_PER_S) { in monotonic_time_from_realtime_time()
66 monotonic_time.tv_nsec -= NS_PER_S; in monotonic_time_from_realtime_time()
69 monotonic_time.tv_nsec += NS_PER_S; in monotonic_time_from_realtime_time()
Dclock.cpp39 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
/bionic/tests/
Dsemaphore_test.cpp98 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()
100 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()
123 ts.tv_nsec = NS_PER_S; in sem_timedwait_helper()
128 ts.tv_nsec = NS_PER_S - 1; in sem_timedwait_helper()
Dpthread_test.cpp1091 ts.tv_nsec = NS_PER_S; in pthread_rwlock_wakeup_timeout_helper()
1093 ts.tv_nsec = NS_PER_S - 1; in pthread_rwlock_wakeup_timeout_helper()
1655 ts.tv_nsec = NS_PER_S; in pthread_cond_timedwait_timeout_helper()
1657 ts.tv_nsec = NS_PER_S - 1; in pthread_cond_timedwait_timeout_helper()
2351 ts.tv_nsec = NS_PER_S; in pthread_mutex_timedlock_helper()
2353 ts.tv_nsec = NS_PER_S - 1; in pthread_mutex_timedlock_helper()
Dtime_test.cpp674 ts2.tv_nsec += NS_PER_S; in TEST()