Class Timer#

Class Documentation#

class Timer#

Timer class.

Public Functions

Timer() noexcept#

Constructor. Creates and starts a new timer.

constexpr Timer(const Timer&) = default#
Timer &operator=(const Timer&) = default#
constexpr Timer(Timer&&) noexcept = default#
Timer &operator=(Timer&&) noexcept = default#
constexpr ~Timer() = default#

Destructor.

void Reset() noexcept#

Resets and restarts the timer.

f32 Elapsed() const#

Retrieve elapsed time in seconds.

Returns:

Elapsed time in seconds.

f32 ElapsedMilliseconds() const#

Retrieve elapsed time in milliseconds.

Returns:

Elapsed time in milliseconds.