File timer.hpp
This file contains an efficient timer class, which is used to retrieve execution times for various parts of the algorithms.
- Author
Benjamin Lindner ben@benlabs.net
- Version
See VERSION in CMakeLists.txt
- Copyright
GNU General Public License
-
class Timer_timeval
- #include <timer.hpp>
Type class which respresents the time value used by the Timer class.
Public Functions
-
Timer_timeval() = default
-
inline explicit Timer_timeval(const timeval &t)
-
inline Timer_timeval &operator=(const timeval &t)
Private Functions
Friends
- friend class boost::serialization::access
-
Timer_timeval() = default
-
class Timer
- #include <timer.hpp>
Basic Timer which provides a start/stop facility measure runtimes. Provides an interface to retrieve statistical information.
Public Functions
-
void clear()
Private Types
-
using times_type = boost::accumulators::accumulator_set<double, features<tag::min, tag::max, tag::mean, tag::variance, tag::sum, tag::count>>
Private Functions
-
double t_diff(timeval start, timeval end)
-
double t_diff(Timer_timeval start, timeval end)
Private Members
-
std::map<std::string, times_type> times
-
std::map<std::string, Timer_timeval> starttimes
Friends
- friend class boost::serialization::access
-
void clear()