Lines Matching refs:tv
71 update_now_usec (struct timeval *tv)
74 update_now (tv->tv_sec);
75 if (now > last || (now == last && tv->tv_usec > now_usec))
76 now_usec = tv->tv_usec;
85 tv_string (const struct timeval *tv, struct gc_arena *gc)
89 (int) tv->tv_sec,
90 (int )tv->tv_usec);
100 tv_string_abs (const struct timeval *tv, struct gc_arena *gc)
102 return time_string ((time_t) tv->tv_sec,
103 (int) tv->tv_usec,
114 struct timeval tv;
118 tv.tv_sec = t;
119 tv.tv_usec = usec;
123 gettimeofday (&tv, NULL);
126 t = tv.tv_sec;
130 if (show_usec && tv.tv_usec)
131 buf_printf (&out, " us=%d", (int)tv.tv_usec);
186 struct timeval tv;
192 gettimeofday (&tv, NULL);
196 (unsigned int)tv.tv_sec,
197 (unsigned int)tv.tv_usec);