timing.hpp

A collection of tools to help measure timing of code.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2020 Michigan State University MIT Software license; see doc/LICENSE.md

Note

Status: BETA

Defines

INCLUDE_EMP_TOOLS_TIMING_HPP_GUARD

Functions

static inline double TimeFun(std::function<void()> test_fun)

A function timer that takes a functor an identifies how long it takes to complete when run.