Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 3 of 3) sorted by last modified time

/unit/src/
H A Dnxt_time.c90 struct timeval tv; in nxt_realtime() local
92 (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() local
227 (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()
H A Dnxt_select_engine.c287 struct timeval tv, *tp; in nxt_select_poll() local
293 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()
H A Dnxt_random.c55 struct timeval tv; in nxt_random_stir() local
95 (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()