#include <game_timer.hpp>
◆ GameTimer() [1/3]
mage::GameTimer::GameTimer |
( |
| ) |
|
|
defaultnoexcept |
◆ GameTimer() [2/3]
mage::GameTimer::GameTimer |
( |
const GameTimer & |
timer | ) |
|
|
defaultnoexcept |
Constructs a game timer from the given game timer.
- Parameters
-
[in] | timer | A reference to the game timer to copy. |
◆ GameTimer() [3/3]
mage::GameTimer::GameTimer |
( |
GameTimer && |
timer | ) |
|
|
defaultnoexcept |
Constructs a game timer by moving the given game timer.
- Parameters
-
[in] | timer | A reference to the game timer to move. |
◆ ~GameTimer()
mage::GameTimer::~GameTimer |
( |
| ) |
|
|
default |
Destructs this game timer.
◆ GetTime()
const GameTime mage::GameTimer::GetTime |
( |
| ) |
|
|
noexcept |
Returns the game time of this game timer.
- Returns
- The game time of this game timer.
◆ operator=() [1/2]
Copies the given game timer to this game timer.
- Parameters
-
[in] | timer | A reference to the game timer to copy. |
- Returns
- A reference to the copy of the given game timer (i.e. this game timer).
◆ operator=() [2/2]
Moves the given game timer to this game timer.
- Parameters
-
[in] | timer | A reference to the game timer to move. |
- Returns
- A reference to the moved game timer (i.e. this game timer).
◆ Restart()
void mage::GameTimer::Restart |
( |
| ) |
|
|
noexcept |
Restarts this game timer.
◆ Resume()
void mage::GameTimer::Resume |
( |
| ) |
|
|
noexcept |
◆ Start()
void mage::GameTimer::Start |
( |
| ) |
|
|
noexcept |
◆ Stop()
void mage::GameTimer::Stop |
( |
| ) |
|
|
noexcept |
◆ m_core_clock_timer
CPUTimer mage::GameTimer::m_core_clock_timer |
|
private |
The core clock per core timer of this game timer.
◆ m_wall_clock_timer
The wall clock timer of this game timer.