Timer modul.
More...
#include <timer.hpp>
|
| timer ()=delete |
| Deleted explicit constructor.
|
|
|
static uint8_t | frame_time () |
| Gets the target frame time in milliseconds.
|
|
static void | set_frame_time (uint8_t frame_time) |
| Sets the target frame time in milliseconds.
|
|
static float | delta_time () |
| Gets the current delta time in milliseconds.
|
|
static void | set_delta_time (float delta_time) |
| Sets the current delta time in milliseconds.
|
|
static uint32_t | current_time () |
| Gets the current game time in milliseconds.
|
|
Timer modul.
Definition at line 37 of file timer.hpp.
◆ frame_time()
uint8_t wze::timer::frame_time |
( |
| ) |
|
|
staticnodiscard |
◆ set_frame_time()
void wze::timer::set_frame_time |
( |
uint8_t | frame_time | ) |
|
|
static |
Sets the target frame time in milliseconds.
- Parameters
-
frame_time | Target frame time in milliseconds. |
- See also
- frame_time()
Definition at line 37 of file timer.cpp.
37 {
39}
static uint8_t frame_time()
Gets the target frame time in milliseconds.
◆ delta_time()
float wze::timer::delta_time |
( |
| ) |
|
|
staticnodiscard |
◆ set_delta_time()
void wze::timer::set_delta_time |
( |
float | delta_time | ) |
|
|
static |
Sets the current delta time in milliseconds.
- Parameters
-
delta_time | Current delta time in milliseconds. |
- See also
- delta_time()
Definition at line 45 of file timer.cpp.
45 {
47}
static float delta_time()
Gets the current delta time in milliseconds.
◆ current_time()
uint32_t wze::timer::current_time |
( |
| ) |
|
|
staticnodiscard |
Gets the current game time in milliseconds.
- Returns
- Current game time in milliseconds.
Definition at line 49 of file timer.cpp.
49 {
50 return SDL_GetTicks();
51}
The documentation for this class was generated from the following files: