29 #ifndef MAQUIS_DMRG__UTIS_TIME_STOPPER_H
30 #define MAQUIS_DMRG__UTIS_TIME_STOPPER_H
32 #include <boost/chrono.hpp>
39 boost::chrono::duration<double>
time_left()
const;
41 boost::chrono::duration<double> limit;
42 boost::chrono::high_resolution_clock::time_point start;
boost::chrono::duration< double > time_left() const
Adapted from alps/ngs/scheduler/stop_callback.hpp.
time_stopper(double timelimit)