Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 44) sorted by relevance

12

/libuv/test/
H A Dbenchmark-async-pummel.c68 uint64_t time; in test_async_pummel() local
80 time = uv_hrtime(); in test_async_pummel()
84 time = uv_hrtime() - time; in test_async_pummel()
93 time / 1e9, in test_async_pummel()
94 fmt(&fmtbuf[1], callbacks / (time / 1e9))); in test_async_pummel()
H A Dbenchmark-async.c79 uint64_t time; in test_async() local
96 time = uv_hrtime(); in test_async()
103 time = uv_hrtime() - time; in test_async()
115 time / 1e9, in test_async()
116 fmt(&fmtbuf, NUM_PINGS / (time / 1e9))); in test_async()
H A Dbenchmark-multi-accept.c368 double time; in test_tcp() local
407 time = t / 1e9; in test_tcp()
419 NUM_CONNECTS / time, in test_tcp()
426 ctx->num_connects / time, in test_tcp()
/libuv/src/
H A Dtimer.c79 clamped_timeout = handle->loop->time + timeout; in uv_timer_start()
137 if (handle->loop->time >= handle->timeout) in uv_timer_get_due_in()
140 return handle->timeout - handle->loop->time; in uv_timer_get_due_in()
154 if (handle->timeout <= loop->time) in uv__next_timeout()
157 diff = handle->timeout - loop->time; in uv__next_timeout()
179 if (handle->timeout > loop->time) in uv__run_timers()
/libuv/docs/src/
H A Dmetrics.rst53 Retrieve the amount of time the event loop has been idle in the kernel's
56 The return value is the accumulated time spent idle in the kernel's event
58 collect the idle time.
62 time until calling :c:type:`uv_loop_configure` with
H A Dthreading.rst72 More fields may be added to this struct at any time, so its exact
220 2. The timeout parameter for :c:func:`uv_cond_timedwait` is relative to the time
223 absolute system time at which the wait expires. If the current system clock time
224 passes the absolute time calculated before the condition is signaled, an ETIMEDOUT
225 error results. After the wait begins, the wait time is not affected by changes
H A Dloop.rst84 - UV_METRICS_IDLE_TIME: Accumulate the amount of idle time the event loop
178 The timestamp increases monotonically from some arbitrary point in time.
187 Update the event loop's concept of "now". Libuv caches the current time
189 time-related system calls.
192 that block the event loop for longer periods of time, where "longer" is
242 the parent process at the time of forking will *not* deliver
H A Dtimer.rst65 time-slice overrun.
83 Get the timer due value or 0 if it has expired. The time is relative to
H A Dmisc.rst126 uv_timeval_t ru_utime; /* user CPU time used */
127 uv_timeval_t ru_stime; /* system CPU time used */
657 nanoseconds. It is relative to an arbitrary time in the past. It is not
658 related to the time of day and therefore not subject to clock drift. The
667 Obtain the current system time from a high-resolution real-time or monotonic
670 The real-time clock counts from the UNIX epoch (1970-01-01) and is subject
671 to time adjustments; it can jump back in time.
674 jumps back in time.
H A Dthreadpool.rst11 Its default size is 4, but it can be changed at startup time by setting the
H A Drequest.rst79 Cancelled requests have their callbacks invoked some time in the future.
H A Ddesign.rst33 - A TCP server handle that gets its connection callback called every time there is a new connection.
66 for a time before the loop's concept of *now* get their callbacks called.
/libuv/src/win/
H A Dcore.c255 loop->time = 0; in uv_loop_init()
327 assert(new_time >= loop->time); in uv_update_time()
328 loop->time = new_time; in uv_update_time()
438 timeout_time = loop->time + timeout; in uv__poll_wine()
500 if (timeout_time > loop->time) { in uv__poll_wine()
501 timeout = (DWORD)(timeout_time - loop->time); in uv__poll_wine()
531 timeout_time = loop->time + timeout; in uv__poll()
602 if (timeout_time > loop->time) { in uv__poll()
603 timeout = (DWORD)(timeout_time - loop->time); in uv__poll()
H A Dfs.c125 #define TIME_T_TO_FILETIME(time, filetime_ptr) \ argument
127 int64_t bigtime = ((time) * TICKS_PER_SEC + WIN_TO_UNIX_TICK_OFFSET); \
2443 req->fs.time.atime, in fs__utime_impl()
2444 req->fs.time.mtime, in fs__utime_impl()
2481 if (fs__utime_handle(handle, req->fs.time.atime, req->fs.time.mtime) != 0) { in fs__futime()
3520 req->fs.time.atime = atime; in uv_fs_utime()
3521 req->fs.time.mtime = mtime; in uv_fs_utime()
3530 req->fs.time.atime = atime; in uv_fs_futime()
3531 req->fs.time.mtime = mtime; in uv_fs_futime()
3546 req->fs.time.atime = atime; in uv_fs_lutime()
[all …]
/libuv/src/unix/
H A Dposix-poll.c183 time_base = loop->time; in uv__io_poll()
336 time_diff = loop->time - time_base; in uv__io_poll()
H A Ddarwin.c176 now = time(NULL); in uv_uptime()
H A Dkqueue.c254 base = loop->time; in uv__io_poll()
470 diff = loop->time - base; in uv__io_poll()
H A Dos390.c879 base = loop->time; in uv__io_poll()
917 base = loop->time; in uv__io_poll()
1053 real_timeout -= (loop->time - base); in uv__io_poll()
H A Dopenbsd.c177 now = time(NULL); in uv_uptime()
H A Dnetbsd.c178 now = time(NULL); in uv_uptime()
H A Dfs.c206 UV_UNUSED(static struct timespec uv__fs_to_timespec(double time)) { in UV_UNUSED() argument
208 ts.tv_sec = time; in UV_UNUSED()
209 ts.tv_nsec = (time - ts.tv_sec) * 1e9; in UV_UNUSED()
225 UV_UNUSED(static struct timeval uv__fs_to_timeval(double time)) { in UV_UNUSED() argument
227 tv.tv_sec = time; in UV_UNUSED()
228 tv.tv_usec = (time - tv.tv_sec) * 1e6; in UV_UNUSED()
/libuv/
H A DCONTRIBUTING.md23 API/ABI or affect the run-time behavior of applications get rejected.
129 Use `git rebase` (not `git merge`) to sync your work from time to time.
H A DSUPPORTED_PLATFORMS.md65 * Generally libuv tries to avoid compile time checks. Do not add any to the
/libuv/docs/src/guide/
H A Dutilities.rst12 Timers invoke the callback after a certain time has elapsed since the timer was
17 Timers can be stopped at any time.
35 The repeat interval can be modified at any time with::
106 CPU time to perform SETI calculations :) An idle watcher is also useful in
250 ``start_timeout`` will be called immediately the first time by libcurl, so
371 Text terminals have supported basic formatting for a long time, with a `pretty
/libuv/include/uv/
H A Dwin.h331 uint64_t time; \
643 } time; \

Completed in 67 milliseconds

12