class EE::System::Clock¶
Overview¶
#include <clock.hpp> class Clock { public: // construction ~Clock(); // methods void restart(); Time getElapsedTime() const; Time getElapsedTimeAndReset(); };
Detailed Documentation¶
Methods¶
void restart()
Restarts the timer
Time getElapsedTime() const
Returns:
time since initialisation or last reset
Time getElapsedTimeAndReset()
Time in time elapsed between this call and the last call to Elapsed() This is the equivalent to call GetElapsedTime() and then Restart().