.. index:: pair: class; gpr::WallClockLimit .. _doxid-classgpr_1_1_wall_clock_limit: class gpr::WallClockLimit ========================= .. toctree:: :hidden: A monotonic wall-clock deadline shared by a complete search and every nested phase. The optional clock makes deadline behaviour testable without sleeping; production uses steady_clock. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class WallClockLimit { public: // typedefs typedef std::chrono::steady_clock :target:`Clock`; typedef std::function :target:`Now`; // construction :target:`WallClockLimit`(double seconds, :ref:`Now` now = {}); // methods bool :target:`enabled`() const; double :target:`elapsedSeconds`() const; bool :target:`reached`() const; double :target:`seconds`() const; };