Searched refs:NS_PER_S (Results 1 – 2 of 2) 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()
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()