Searched refs:tv (Results 1 – 3 of 3) sorted by relevance
90 struct timeval tv; in nxt_realtime() local92 (void) gettimeofday(&tv, NULL); in nxt_realtime()94 now->sec = (nxt_time_t) tv.tv_sec; in nxt_realtime()95 now->nsec = tv.tv_usec * 1000; in nxt_realtime()225 struct timeval tv; in nxt_monotonic_time() local227 (void) gettimeofday(&tv, NULL); in nxt_monotonic_time()229 now->realtime.sec = (nxt_time_t) tv.tv_sec; in nxt_monotonic_time()230 now->realtime.nsec = tv.tv_usec * 1000; in nxt_monotonic_time()237 current = (nxt_nsec_t) tv.tv_sec * 1000000000 + tv.tv_usec * 1000; in nxt_monotonic_time()
55 struct timeval tv; in nxt_random_stir() local95 (void) gettimeofday(&tv, NULL); in nxt_random_stir()99 key.value[0] ^= tv.tv_usec; in nxt_random_stir()100 key.value[1] ^= tv.tv_sec; in nxt_random_stir()
287 struct timeval tv, *tp; in nxt_select_poll() local293 tv.tv_sec = (long) (timeout / 1000); in nxt_select_poll()294 tv.tv_usec = (long) ((timeout % 1000) * 1000); in nxt_select_poll()295 tp = &tv; in nxt_select_poll()