#include <game_timer.hpp>
◆ GameTime() [1/4]
constexpr mage::GameTime::GameTime |
( |
| ) |
|
|
noexcept |
◆ GameTime() [2/4]
Constructs a game time.
- Parameters
-
[in] | wall_clock_delta_time | The wall clock delta time (in seconds). |
[in] | wall_clock_total_delta_time | The wall clock total delta time (in seconds). |
[in] | core_clock_delta_time | The core clock delta time (in seconds). |
[in] | core_clock_total_delta_time | The core clock total delta time (in seconds). |
◆ GameTime() [3/4]
constexpr mage::GameTime::GameTime |
( |
const GameTime & |
time | ) |
|
|
defaultnoexcept |
Constructs a game time from the given game time.
- Parameters
-
[in] | time | A reference to the game time to copy. |
◆ GameTime() [4/4]
constexpr mage::GameTime::GameTime |
( |
GameTime && |
time | ) |
|
|
defaultnoexcept |
Constructs a game time by moving the given game time.
- Parameters
-
[in] | time | A reference to the game time to move. |
◆ ~GameTime()
mage::GameTime::~GameTime |
( |
| ) |
|
|
default |
Destructs this game time.
◆ GetCoreClockDeltaTime()
Returns the core clock delta time (in seconds) of this game time.
- Returns
- The core clock delta time (in seconds) of this game time.
◆ GetCoreClockTotalDeltaTime()
Returns the core clock total delta time (in seconds) of this game time.
- Returns
- The core clock total delta time (in seconds) of this game time.
◆ GetWallClockDeltaTime()
Returns the wall clock delta time (in seconds) of this game time.
- Returns
- The wall clock delta time (in seconds) of this game time.
◆ GetWallClockTotalDeltaTime()
Returns the wall clock total delta time (in seconds) of this game time.
- Returns
- The wall clock total delta time (in seconds) of this game time.
◆ operator=() [1/2]
Copies the given game time to this game time.
- Parameters
-
[in] | time | A reference to the game time to copy. |
- Returns
- A reference to the copy of the given game time (i.e. this game time).
◆ operator=() [2/2]
Moves the given game time to this game time.
- Parameters
-
[in] | time | A reference to the game time to move. |
- Returns
- A reference to the moved game time (i.e. this game time).
◆ m_core_clock_delta_time
The core clock delta time (in seconds) of this game time.
◆ m_core_clock_total_delta_time
The core clock total delta time (in seconds) of this game time.
◆ m_wall_clock_delta_time
The wall clock delta time (in seconds) of this game time.
◆ m_wall_clock_total_delta_time
The wall clock total delta time (in seconds) of this game time.