32 std::chrono::high_resolution_clock::time_point start_time_;
45 start_time_ = std::chrono::high_resolution_clock::now();
53 return std::chrono::duration_cast<std::chrono::duration<double> >(std::chrono::high_resolution_clock::now() - start_time_).count();
Definition: abstractgraph.cc:35
A simple helper class for measuring elapsed time.
Definition: timer.hh:30
double get_duration() const
Get the time (in seconds) elapsed since the creation or the last reset() call of the timer...
Definition: timer.hh:52
void reset()
Reset the timer.
Definition: timer.hh:44
Timer()
Create and start a new timer.
Definition: timer.hh:37