Searched refs:NS_PER_S (Results 1 – 3 of 3) sorted by relevance
27 #ifndef NS_PER_S28 #define NS_PER_S UINT64_C(1000000000) macro173 } else if (delay > (NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX)) { in rtcSetWakeupTimer()174 delay = NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX; in rtcSetWakeupTimer()204 if (RTC_VALID_DELAY_FOR_PERIOD(delay, NS_PER_S)) in rtcSetWakeupTimer()208 periodNs = NS_PER_S; in rtcSetWakeupTimer()209 periodNsRecip = U64_RECIPROCAL_CALCULATE(NS_PER_S); in rtcSetWakeupTimer()279 …return (time_s * NS_PER_S) + U64_DIV_BY_CONST_U16(((RTC_PREDIV_S - ssr) * NS_PER_S), (RTC_PREDIV_S… in rtcGetTime()
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()
90 #define NS_PER_S 1000000000 macro100 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()102 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()