Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-gettimeofday.c26 uv_timeval64_t tv; in TEST_IMPL() local
29 tv.tv_sec = 0; in TEST_IMPL()
30 r = uv_gettimeofday(&tv); in TEST_IMPL()
32 ASSERT_NE(0, tv.tv_sec); in TEST_IMPL()
H A Drunner-unix.c246 struct timeval tv; in process_wait() local
296 tv = timebase; in process_wait()
299 assert(tv.tv_sec > timebase.tv_sec || in process_wait()
300 (tv.tv_sec == timebase.tv_sec && tv.tv_usec >= timebase.tv_usec)); in process_wait()
303 (tv.tv_sec - timebase.tv_sec) * 1000 + in process_wait()
304 (tv.tv_usec / 1000) - in process_wait()
311 tv.tv_sec = (timeout - elapsed_ms) / 1000; in process_wait()
312 tv.tv_usec = (timeout - elapsed_ms) % 1000 * 1000; in process_wait()
317 r = select(args.pipe[0] + 1, &fds, NULL, NULL, &tv); in process_wait()
321 if (gettimeofday(&tv, NULL)) in process_wait()
/libuv/src/unix/
H A Dfs.c226 struct timeval tv; in UV_UNUSED() local
227 tv.tv_sec = time; in UV_UNUSED()
228 tv.tv_usec = (time - tv.tv_sec) * 1e6; in UV_UNUSED()
229 if (tv.tv_usec < 0) { in UV_UNUSED()
230 tv.tv_usec += 1e6; in UV_UNUSED()
231 tv.tv_sec -= 1; in UV_UNUSED()
233 return tv; in UV_UNUSED()
251 struct timeval tv[2]; in uv__fs_futime()
257 return futimes(req->file, tv); in uv__fs_futime()
1161 struct timeval tv[2]; in uv__fs_utime()
[all …]
H A Dthread.c845 struct timeval tv; in uv_cond_timedwait() local
854 if (gettimeofday(&tv, NULL)) in uv_cond_timedwait()
856 timeout += tv.tv_sec * NANOSEC + tv.tv_usec * 1e3; in uv_cond_timedwait()
H A Dcore.c1778 int uv_gettimeofday(uv_timeval64_t* tv) { in uv_gettimeofday() argument
1781 if (tv == NULL) in uv_gettimeofday()
1787 tv->tv_sec = (int64_t) time.tv_sec; in uv_gettimeofday()
1788 tv->tv_usec = (int32_t) time.tv_usec; in uv_gettimeofday()
/libuv/src/win/
H A Dutil.c1674 int uv_gettimeofday(uv_timeval64_t* tv) { in uv_gettimeofday() argument
1680 if (tv == NULL) in uv_gettimeofday()
1686 tv->tv_sec = (int64_t) ((ularge.QuadPart - epoch) / 10000000L); in uv_gettimeofday()
1687 tv->tv_usec = (int32_t) (((ularge.QuadPart - epoch) % 10000000L) / 10); in uv_gettimeofday()
/libuv/include/
H A Duv.h1874 UV_EXTERN int uv_gettimeofday(uv_timeval64_t* tv);
/libuv/docs/src/
H A Dmisc.rst834 .. c:function:: int uv_gettimeofday(uv_timeval64_t* tv)

Completed in 38 milliseconds