23#include <boost/asio/associated_executor.hpp>
32template<
typename Accumulator,
typename Handler>
35 using boost::asio::bind_executor;
36 using boost::asio::get_associated_executor;
38 const auto executor = get_associated_executor(handler);
39 return bind_executor(executor,
Flow module containing tools for profiling and optimization.
auto timed_function(Clock_type clock_type, Accumulator *accumulator, Func &&function)
Constructs a closure that times and executes void-returning function(), adding the elapsed time with ...
auto timed_handler(Clock_type clock_type, Accumulator *accumulator, Handler &&handler)
Identical to timed_function() but suitable for boost.asio-targeted handler functions.
Clock_type
Clock types supported by flow::perf module facilities, perf::Checkpointing_timer in particular.