Searched refs:NS_PER_S (Results 1 – 8 of 8) sorted by relevance
25 #define NS_PER_S 1000000000 macro33 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()35 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()43 return (int64_t)(ts_end.tv_sec - 1 - ts_start.tv_sec) * NS_PER_S + in time_diff()44 ts_end.tv_nsec + NS_PER_S - ts_start.tv_nsec; in time_diff()
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()
102 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()104 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()127 ts.tv_nsec = NS_PER_S; in sem_timedwait_helper()132 ts.tv_nsec = NS_PER_S - 1; in sem_timedwait_helper()
1090 ts.tv_nsec = NS_PER_S; in pthread_rwlock_wakeup_timeout_helper()1092 ts.tv_nsec = NS_PER_S - 1; in pthread_rwlock_wakeup_timeout_helper()1654 ts.tv_nsec = NS_PER_S; in pthread_cond_timedwait_timeout_helper()1656 ts.tv_nsec = NS_PER_S - 1; in pthread_cond_timedwait_timeout_helper()2350 ts.tv_nsec = NS_PER_S; in pthread_mutex_timedlock_helper()2352 ts.tv_nsec = NS_PER_S - 1; in pthread_mutex_timedlock_helper()
89 #define NS_PER_S 1000000000 macro99 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()101 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()