41 const auto now = std::chrono::high_resolution_clock::now();
42 std::chrono::duration<float> duration = now -
m_start;
44 return duration.count();
52 std::stringstream buffer;
double obj
the value of the quadratic function
A simple class that provides a wall-clock (not processor time) timer.
float elapsed_no_reset() const
Returns the wall-clock time elapsed in seconds since the Timer object's creation, or the last call to...
float elapsed(bool reset=true)
Returns the wall-clock time elapsed in seconds since the Timer object's creation, or the last call to...
void reset()
Explicitly reset the timer.
time_point_ns m_start
The starting time.
std::string str() const
Convert the elapsed time (without reseting) to a string.
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.