A module containing the Clock class.
- class Clock;
- Utility class that measures the elapsed time.
Clock is a lightweight class for measuring time.
Its provides the most precise time that the underlying OS can achieve (generally microseconds or nanoseconds).
It also ensures monotonicity, which means that the returned time can never go backward, even if the system time is changed.
- Default constructor.
- const Time getElapsedTime();
- Get the elapsed time.
This function returns the time elapsed since the last call to restart() (or the construction of the instance if restart() has not been called).
Time elapsed .
- Time restart();
- Restart the clock.
This function puts the time counter back to zero. It also returns the time elapsed since the clock was started.
- const @property Clock dup();
- Create a copy of the clock.