Flow 1.0.2
Flow project: Public API.
Namespaces | Functions
timed_function.hpp File Reference

Namespaces

namespace  flow
 Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel.
 
namespace  flow::perf
 Flow module containing tools for profiling and optimization.
 

Functions

template<typename Accumulator , typename Func >
auto flow::perf::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 clock type clock_type – as raw ticks of perf::Duration – to accumulator. More...
 
template<typename Accumulator , typename Func >
auto flow::perf::timed_function_nvr (Clock_type clock_type, Accumulator *accumulator, Func &&function)
 Constructs a closure that times and executes non-void-returning function(), adding the elapsed time with clock type clock_type – as raw ticks of perf::Duration – to accumulator. More...