Lines Matching refs:time
16 static const char *format_time(time_t time, in format_time() argument
23 struct tm *tp = gmtime_r(&time, &tv); in format_time()
102 uint32_t time = 0; in min_alarm_handler() local
105 (void)counter_get_value(dev, &time); in min_alarm_handler()
122 uint32_t offset_s = time - (uint32_t)sp.rtc.tv_sec; in min_alarm_handler()
144 format_time(time, -1), in min_alarm_handler()
145 (uint32_t)(ts->tv_sec - time), ts->tv_nsec, in min_alarm_handler()
294 (uint32_t)sec_alarm.time, rc); in main()
297 (uint32_t)min_alarm.time, rc); in main()
303 sec_alarm.time = sp.rtc.tv_sec + 5; in main()
309 printk("Min Sec base time: %s\n", format_time(sec_alarm.time, -1)); in main()
312 min_alarm.time = sec_alarm.time; in main()
322 (uint32_t)sec_alarm.time, format_time(sec_alarm.time, -1), rc); in main()
326 (uint32_t)min_alarm.time, format_time(min_alarm.time, -1), rc); in main()
333 (uint32_t)sec_alarm.time, format_time(sec_alarm.time, -1)); in main()
336 (uint32_t)min_alarm.time, format_time(min_alarm.time, -1)); in main()