12 #include <type_traits> 14 #include <corsika/framework/analytics/Timer.hpp> 27 template <
typename TFunc,
class TTimer = Timer<std::chrono::high_resolution_clock,
28 std::chrono::microseconds>>
32 "TTimer is not a timer!");
51 template <
typename... TArgs>
52 auto operator()(TArgs&&... args) -> std::invoke_result_t<TFunc, TArgs...>;
60 #include <corsika/detail/framework/analytics/FunctionTimer.inl> Wraps and measures the runtime of a single function type object.
`, since they are used everywhere as integral part of the framework.
auto operator()(TArgs &&... args) -> std::invoke_result_t< TFunc, TArgs... >
Functor for calling the wrapped function This functor calls the wrapped function and measures the ela...
FunctionTimer(TFunc f)
Constructs the wrapper with the given functionpointer.