Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 11 of 11) sorted by relevance

/libevent-2.1.12/test/
H A Dtest-changelist.c65 start_cpu_usage_timer(struct cpu_usage_timer *timer) in start_cpu_usage_timer() argument
70 timer->thread = GetCurrentThread(); in start_cpu_usage_timer()
71 r = GetThreadTimes(timer->thread, &createtime, &exittime, in start_cpu_usage_timer()
72 &timer->usertimeBegin, &timer->kerneltimeBegin); in start_cpu_usage_timer()
75 timer->ticksBegin = clock(); in start_cpu_usage_timer()
78 evutil_gettimeofday(&timer->timeBegin, NULL); in start_cpu_usage_timer()
118 r = GetThreadTimes(timer->thread, &createtime, &exittime, in get_cpu_usage()
129 evutil_timersub(&timeEnd, &timer->timeBegin, &timeDiff); in get_cpu_usage()
170 struct cpu_usage_timer timer; in main() local
201 start_cpu_usage_timer(&timer); in main()
[all …]
H A Dtest-ratelim.c284 struct event *timer = NULL; in timer_bias_calculate() local
297 timer = event_new(base, -1, EV_PERSIST, timer_bias_cb, event_self_cbarg()); in timer_bias_calculate()
298 if (!timer || event_add(timer, &tv)) { in timer_bias_calculate()
309 if (timer) in timer_bias_calculate()
310 event_free(timer); in timer_bias_calculate()
H A Dregress_util.c1393 struct evutil_monotonic_timer timer; in test_evutil_monotonic_res() local
1425 tt_int_op(evutil_configure_monotonic_time_(&timer, flags), ==, 0); in test_evutil_monotonic_res()
1428 evutil_gettime_monotonic_(&timer, &tv[i]); in test_evutil_monotonic_res()
1450 struct evutil_monotonic_timer timer; in test_evutil_monotonic_prc() local
1462 tt_int_op(evutil_configure_monotonic_time_(&timer, flags), ==, 0); in test_evutil_monotonic_prc()
1466 evutil_gettime_monotonic_(&timer, &tv[0]); in test_evutil_monotonic_prc()
1469 evutil_gettime_monotonic_(&timer, &tv[i]); in test_evutil_monotonic_prc()
/libevent-2.1.12/
H A Devutil_time.c149 HANDLE timer; in evutil_usleep_() local
156 timer = CreateWaitableTimer(NULL, TRUE, NULL); in evutil_usleep_()
157 if (!timer) in evutil_usleep_()
160 SetWaitableTimer(timer, &li, 0, NULL, NULL, 0); in evutil_usleep_()
161 WaitForSingleObject(timer, INFINITE); in evutil_usleep_()
162 CloseHandle(timer); in evutil_usleep_()
270 if (timer) { in evutil_monotonic_timer_free()
271 mm_free(timer); in evutil_monotonic_timer_free()
282 return evutil_configure_monotonic_time_(timer, flags); in evutil_configure_monotonic_time()
289 evutil_gettime_monotonic(struct evutil_monotonic_timer *timer, in evutil_gettime_monotonic() argument
[all …]
H A DLICENSE77 The Windows timer code is based on code from libutp, which is
H A DChangeLog-1.471 o Clear the timer cache on entering the event loop; reported by Victor Chang
74 o Clear the timer cache when leaving the event loop; reported by Robin Haberkorn
H A DChangeLog806 …o http: reset connection before installing retry timer (fix http retries handling) (bc79cc5 Azat K…
1292 o Add an event_remove_timer() to remove timer on an event without
1311 o EVENT_BASE_FLAG_PRECISE_TIMER indicates we want fine timer precision
1314 o Implement a GetTickCount-based monotonic timer for Windows (d5e1d5a)
1315 o Refactor monotonic timer handling into a new type and set of
1318 timer (a2598ec)
1354 o Make load-dependent monotonic timer tests off-by-default (2b6fe8b)
H A Dwhatsnew-2.0.txt260 The heap-based priority queue timer implementation for Libevent 1.4 is good
H A DChangeLog-2.01214 …o add new evtimer_assign, signal_assign, evtimer_new, and signal_new functions to manipulate timer
1258 o Clear the timer cache on entering the event loop; reported by Victor Chang
1261 o Clear the timer cache when leaving the event loop; reported by Robin Haberkorn
H A Dwhatsnew-2.1.txt493 There are new API to work with monotonic timer -- monotonic time is
/libevent-2.1.12/include/event2/
H A Dutil.h355 void evutil_monotonic_timer_free(struct evutil_monotonic_timer *timer);
361 int evutil_configure_monotonic_time(struct evutil_monotonic_timer *timer,
375 int evutil_gettime_monotonic(struct evutil_monotonic_timer *timer,