The game timer.
More...
#include <Timer.h>
◆ Timer()
◆ AddTime()
void Timer::AddTime |
( |
const float |
time | ) |
|
Adds time to the time.
It can also be used to subtract time, but it will never get below 0.
- Parameters
-
- Todo:
- What are the units? seconds?
◆ GetGameTimeDelta()
float Timer::GetGameTimeDelta |
( |
| ) |
|
Retrieves the game time difference.
- Returns
- The game time difference.
- Todo:
- What is the game time? What's the difference with system time?
◆ GetGameTimer()
int Timer::GetGameTimer |
( |
| ) |
const |
Retrieves the game timer.
- Returns
- The game timer.
- Todo:
- What is this timer? Why is it an int, but the setter accepts float?
◆ GetGameTimeTotal()
float Timer::GetGameTimeTotal |
( |
| ) |
|
Retrieves the total game time.
- Returns
- The total game time.
- Todo:
- What is the game time? What's the difference with system time?
◆ GetSystemTimeDelta()
float Timer::GetSystemTimeDelta |
( |
| ) |
|
Retrieves the system time difference.
- Returns
- The system time difference.
- Todo:
- What is the system time? What's the difference with game time?
◆ GetSystemTimeTotal()
float Timer::GetSystemTimeTotal |
( |
| ) |
|
Retrieves the total system time.
- Returns
- The total system time.
- Todo:
- What is the system time? What's the difference with game time?
◆ SetGameTimer()
void Timer::SetGameTimer |
( |
const float |
timer | ) |
|
Sets the game timer.
- Parameters
-
[in] | timer | The new game timer. |
- Todo:
- Understand and document.
◆ game_time_delta_
float Timer::game_time_delta_ |
|
private |
The game time difference.
◆ game_time_total_
float Timer::game_time_total_ |
|
private |
◆ game_timer_
◆ system_time_delta_
float Timer::system_time_delta_ |
|
private |
The system time difference.
◆ system_time_total_
float Timer::system_time_total_ |
|
private |
The documentation for this class was generated from the following files: