Struct TimeStep#

Struct Documentation#

struct TimeStep#

Struct for a single step in time.

Public Functions

explicit constexpr TimeStep(f32 time) noexcept#

Constructor for a single step in time.

Parameters:

time – Time for the time step in seconds.

constexpr TimeStep(const TimeStep&) = default#

Copy constructor.

constexpr TimeStep &operator=(const TimeStep&) = default#

Copy assignment operator,.

constexpr TimeStep(TimeStep&&) noexcept = default#

Move constructor.

constexpr TimeStep &operator=(TimeStep&&) noexcept = default#

Move assignment operator.

constexpr ~TimeStep() = default#

Destructor,.

constexpr operator f32() const noexcept#

Convenience operator. Same as GetSeconds();.

Returns:

Time of the time step in seconds.

constexpr f32 GetSeconds() const noexcept#

Get time of the time step in seconds.

Returns:

Time in seconds.

constexpr f32 GetMilliseconds() const noexcept#

Get time of the time step in milliseconds.

Returns:

Time in milliseconds.