24 #ifndef PERFORMANCE_H_ 25 #define PERFORMANCE_H_ 61 typedef std::chrono::high_resolution_clock
clock_;
62 typedef std::chrono::duration<double, std::ratio<1> >
second_;
63 std::chrono::time_point<clock_>
beg_;
64 std::chrono::time_point<clock_>
end_;
double elapsed() const
Computes the elapsed time between start() and stop()
std::chrono::time_point< clock_ > end_
stores the end time point
std::chrono::duration< double, std::ratio< 1 > > second_
void start()
Start the time duration measurement.
std::chrono::time_point< clock_ > beg_
stores the beginning point
std::chrono::high_resolution_clock clock_
The Timer-class uses the std::chrono library and provides a high precision timer. ...
void stop()
Stop the time duration measurement.