Class that measures time. More...
#include <Clock.h>
Public Member Functions | |
| Clock () | |
| Default constructor. More... | |
| Time | getElapsedTime () const |
| Get the elapsed time. More... | |
| Time | restart () |
| Restart the clock. More... | |
| ime::Clock::Clock | ( | ) |
Default constructor.
The clock is started immediately after construction
| Time ime::Clock::getElapsedTime | ( | ) | const |
Get the elapsed time.
This function returns the time passed since the clock was created or the time passed since the last call to restart
| Time ime::Clock::restart | ( | ) |
Restart the clock.
This function resets the counter to zero and returns the time passed since the clock was started