Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 26) sorted by relevance

12

/libuv/test/
H A Drunner-unix.c299 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()
311 tv.tv_sec = (timeout - elapsed_ms) / 1000; in process_wait()
H A Dtest-gettimeofday.c29 tv.tv_sec = 0; in TEST_IMPL()
32 ASSERT_NE(0, tv.tv_sec); in TEST_IMPL()
H A Dtest-platform-output.c74 ASSERT_GE(rusage.ru_utime.tv_sec, 0); in TEST_IMPL()
76 ASSERT_GE(rusage.ru_stime.tv_sec, 0); in TEST_IMPL()
80 (unsigned long long) rusage.ru_utime.tv_sec, in TEST_IMPL()
83 (unsigned long long) rusage.ru_stime.tv_sec, in TEST_IMPL()
H A Dtest-hrtime.c62 ASSERT_GT(1682500000000ll, t.tv_sec); /* 2023-04-26T09:06:40.000Z */ in TEST_IMPL()
H A Dtest-fs.c1481 ASSERT_EQ(s->st_birthtim.tv_sec, t.st_birthtimespec.tv_sec); in TEST_IMPL()
1487 ASSERT(s->st_birthtim.tv_sec == 0 || in TEST_IMPL()
1488 s->st_birthtim.tv_sec == t.st_ctim.tv_sec); in TEST_IMPL()
1522 ASSERT_EQ(s->st_atim.tv_sec, t.st_atimespec.tv_sec); in TEST_IMPL()
1524 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtimespec.tv_sec); in TEST_IMPL()
1526 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctimespec.tv_sec); in TEST_IMPL()
1530 ASSERT_EQ(s->st_atim.tv_sec, t.st_atime); in TEST_IMPL()
1553 ASSERT_EQ(s->st_atim.tv_sec, t.st_atim.tv_sec); in TEST_IMPL()
1555 ASSERT_EQ(s->st_mtim.tv_sec, t.st_mtim.tv_sec); in TEST_IMPL()
1557 ASSERT_EQ(s->st_ctim.tv_sec, t.st_ctim.tv_sec); in TEST_IMPL()
[all …]
/libuv/src/unix/
H A Dfs.c220 ts.tv_sec -= 1; in UV_UNUSED()
231 tv.tv_sec -= 1; in UV_UNUSED()
1462 dst->st_atim.tv_sec = src->st_atimespec.tv_sec; in uv__to_stat()
1464 dst->st_mtim.tv_sec = src->st_mtimespec.tv_sec; in uv__to_stat()
1466 dst->st_ctim.tv_sec = src->st_ctimespec.tv_sec; in uv__to_stat()
1468 dst->st_birthtim.tv_sec = src->st_birthtimespec.tv_sec; in uv__to_stat()
1494 dst->st_atim.tv_sec = src->st_atim.tv_sec; in uv__to_stat()
1496 dst->st_mtim.tv_sec = src->st_mtim.tv_sec; in uv__to_stat()
1498 dst->st_ctim.tv_sec = src->st_ctim.tv_sec; in uv__to_stat()
1502 dst->st_birthtim.tv_sec = src->st_birthtim.tv_sec; in uv__to_stat()
[all …]
H A Dposix-hrtime.c35 return t.tv_sec * (uint64_t) 1e9 + t.tv_nsec; in uv__hrtime()
H A Dthread.c483 interval.tv_sec = 0; in uv_sem_trywait()
764 ts.tv_sec = 0; in uv_cond_destroy()
828 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()
835 timeout += tv.tv_sec * NANOSEC + tv.tv_usec * 1e3; in uv_cond_timedwait()
839 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()
H A Dcore.c145 ts->tv_sec = t.tv_sec; in uv_clock_gettime()
1008 rusage->ru_utime.tv_sec = usage.ru_utime.tv_sec; in uv_getrusage()
1011 rusage->ru_stime.tv_sec = usage.ru_stime.tv_sec; in uv_getrusage()
1787 tv->tv_sec = (int64_t) time.tv_sec; in uv_gettimeofday()
1796 timeout.tv_sec = msec / 1000; in uv_sleep()
H A Dlinux.c1133 buf->st_atim.tv_sec = statxbuf->stx_atime.tv_sec; in uv__statx_to_stat()
1135 buf->st_mtim.tv_sec = statxbuf->stx_mtime.tv_sec; in uv__statx_to_stat()
1137 buf->st_ctim.tv_sec = statxbuf->stx_ctime.tv_sec; in uv__statx_to_stat()
1139 buf->st_birthtim.tv_sec = statxbuf->stx_btime.tv_sec; in uv__statx_to_stat()
1654 return t.tv_sec * (uint64_t) 1e9 + t.tv_nsec; in uv__hrtime()
1708 *uptime = now.tv_sec; in uv_uptime()
H A Ddarwin.c177 *uptime = now - info.tv_sec; in uv_uptime()
H A Dfreebsd.c177 *uptime = sp.tv_sec; in uv_uptime()
H A Dopenbsd.c179 *uptime = (double)(now - info.tv_sec); in uv_uptime()
H A Dnetbsd.c180 *uptime = (double)(now - info.tv_sec); in uv_uptime()
H A Dinternal.h190 int64_t tv_sec; member
H A Dkqueue.c273 spec.tv_sec = timeout / 1000; in uv__io_poll()
H A Dsunos.c220 spec.tv_sec = timeout / 1000; in uv__io_poll()
H A Dos390.c228 *uptime = difftime64(time64(&t), v->ut_tv.tv_sec); in uv_uptime()
H A Dstream.c302 timeout.tv_sec = 0; in uv__stream_try_select()
/libuv/src/
H A Dfs-poll.c262 && a->st_ctim.tv_sec == b->st_ctim.tv_sec in statbuf_eq()
263 && a->st_mtim.tv_sec == b->st_mtim.tv_sec in statbuf_eq()
264 && a->st_birthtim.tv_sec == b->st_birthtim.tv_sec in statbuf_eq()
/libuv/src/win/
H A Dutil.c439 ts->tv_sec = t / 1000000000; in uv_clock_gettime()
449 ts->tv_sec = t / 10000000; in uv_clock_gettime()
912 uv_rusage->ru_utime.tv_sec = userSystemTime.wHour * 3600 + in uv_getrusage()
917 uv_rusage->ru_stime.tv_sec = kernelSystemTime.wHour * 3600 + in uv_getrusage()
1686 tv->tv_sec = (int64_t) ((ularge.QuadPart - epoch) / 10000000L); in uv_gettimeofday()
H A Dpoll.c299 timeout.tv_sec = 3 * 60; in uv__slow_poll_thread_proc()
H A Dfs.c117 ts->tv_sec = filetime / TICKS_PER_SEC; in uv__filetime_to_timespec()
120 ts->tv_sec -= 1; in uv__filetime_to_timespec()
/libuv/include/
H A Duv.h365 long tv_sec; member
370 int64_t tv_sec; member
376 long tv_sec; member
381 int64_t tv_sec; member
/libuv/docs/src/
H A Dmisc.rst82 long tv_sec;
93 int64_t tv_sec;
104 int64_t tv_sec;

Completed in 86 milliseconds

12