.. index:: pair: class; EE::System::Clock .. _doxid-class_e_e_1_1_system_1_1_clock: class EE::System::Clock ======================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Clock { public: // construction :target:`~Clock`(); // methods void :ref:`restart`(); :ref:`Time` :ref:`getElapsedTime`() const; :ref:`Time` :ref:`getElapsedTimeAndReset`(); }; .. _details-class_e_e_1_1_system_1_1_clock: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; restart .. _doxid-class_e_e_1_1_system_1_1_clock_1a5071dfae7f7f87a051ca1ddacdd1f7e1: .. ref-code-block:: cpp :class: doxyrest-title-code-block void restart() Restarts the timer .. index:: pair: function; getElapsedTime .. _doxid-class_e_e_1_1_system_1_1_clock_1a04a6a449ecccf6cc24273a3428fe8fe1: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Time` getElapsedTime() const .. rubric:: Returns: time since initialisation or last reset .. index:: pair: function; getElapsedTimeAndReset .. _doxid-class_e_e_1_1_system_1_1_clock_1ae1859415d342ea8c7221bd3c9927648a: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Time` getElapsedTimeAndReset() :ref:`Time ` in time elapsed between this call and the last call to Elapsed() This is the equivalent to call GetElapsedTime() and then Restart().