Home
last modified time | relevance | path

Searched refs:idle_time (Results 1 – 2 of 2) sorted by relevance

/libuv/test/
H A Dtest-metrics.c56 uint64_t idle_time; in TEST_IMPL() local
69 idle_time = uv_metrics_idle_time(uv_default_loop()); in TEST_IMPL()
72 ASSERT_LE(idle_time, (timeout + 500) * UV_NS_TO_MS); in TEST_IMPL()
73 ASSERT_GE(idle_time, (timeout - 500) * UV_NS_TO_MS); in TEST_IMPL()
84 uint64_t idle_time; in metrics_routine_cb() local
98 idle_time = uv_metrics_idle_time(&loop); in metrics_routine_cb()
104 ASSERT_GE(idle_time, (timeout - 500) * UV_NS_TO_MS); in metrics_routine_cb()
/libuv/src/
H A Duv-common.c1040 uint64_t idle_time; in uv_metrics_idle_time() local
1044 idle_time = loop_metrics->provider_idle_time; in uv_metrics_idle_time()
1049 idle_time += uv_hrtime() - entry_time; in uv_metrics_idle_time()
1050 return idle_time; in uv_metrics_idle_time()

Completed in 7 milliseconds