Searched refs:NS_PER_S (Results 1 – 7 of 7) sorted by relevance
56 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()
20 #define NS_PER_S 1000000000 macro
65 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()
39 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC)); in clock()
98 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()
1091 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()
674 ts2.tv_nsec += NS_PER_S; in TEST()