24 if(clock_gettime(CLOCK_REALTIME, &tp) != 0)
30 *time = ((uint32_t)tp.tv_sec);
37 if(clock_gettime(CLOCK_REALTIME, &tp) != 0)
43 *time_ms = ((uint64_t)tp.tv_sec * 1000 + (uint64_t)tp.tv_nsec / 1000000);
55 uint64_t current_time_ms;
58 if(current_time_ms < start_time_ms || current_time_ms > (start_time_ms + period_ms))
void RTC_getTime(uint32_t *time)
void RTC_setTime(uint32_t *time)
bool RTC_timerElapsed_ms(uint64_t start_time_ms, uint64_t period_ms)
void RTC_getTime_ms(uint64_t *time_ms)