26namespace triqs::utility {
30 if (time_in_seconds <= 0)
return []() {
return false; };
32 auto end_time = std::chrono::system_clock::now() + std::chrono::seconds(time_in_seconds);
33 return [end_time]() {
return (std::chrono::system_clock::now() > end_time); };
Callbacks used by the Monte Carlo framework.
std::function< bool()> clock_callback(int time_in_seconds)
Build a callback that returns true once a given time in seconds has elapsed since its creation.
void start()
Install the TRIQS signal handler.
Provides a signal handler for the TRIQS library.