Home
last modified time | relevance | path

Searched refs:sys_tv (Results 1 – 1 of 1) sorted by relevance

/busybox-1.35.0/util-linux/
Dhwclock.c66 # define read_rtc(pp_rtcname, sys_tv, utc) read_rtc(pp_rtcname, utc) argument
68 static time_t read_rtc(const char **pp_rtcname, struct timeval *sys_tv, int utc) in read_rtc() argument
82 xgettimeofday(sys_tv); in read_rtc()
98 struct timeval sys_tv; in show_clock() local
100 time_t t = read_rtc(pp_rtcname, &sys_tv, utc); in show_clock()
116 long diff = sys_tv.tv_sec - t; in show_clock()
125 sys_tv.tv_usec = 999999 - sys_tv.tv_usec; in show_clock()
127 printf("%s %ld.%06lu seconds\n", cp, diff, (unsigned long)sys_tv.tv_usec); in show_clock()