MCPcopy Create free account
hub / github.com/boostorg/asio / make_timer

Function make_timer

test/deadline_timer.cpp:400–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400boost::asio::deadline_timer make_timer(boost::asio::io_context& ioc, int* count)
401{
402 boost::asio::deadline_timer t(ioc);
403 t.expires_from_now(boost::posix_time::seconds(1));
404 t.async_wait(boost::bind(increment, count));
405 return t;
406}
407
408void deadline_timer_move_test()
409{

Callers 1

deadline_timer_move_testFunction · 0.70

Calls 3

expires_from_nowMethod · 0.80
bindFunction · 0.50
async_waitMethod · 0.45

Tested by

no test coverage detected