A timer, giving timing capabilities.
More...
A timer, giving timing capabilities.
◆ GlobalTimer()
nkGraphics::GlobalTimer::GlobalTimer |
( |
| ) |
|
|
noexcept |
◆ setModuloTime()
void nkGraphics::GlobalTimer::setModuloTime |
( |
unsigned long long |
moduloTime | ) |
|
Sets the time modulo the timer will have. In a nutshell, timer will loop its time according to this modulo : [0, modulo].
- Parameters
-
moduloTime | The modulo to use. |
◆ updateFrameTime()
void nkGraphics::GlobalTimer::updateFrameTime |
( |
| ) |
|
◆ getDeltaTime()
unsigned long long nkGraphics::GlobalTimer::getDeltaTime |
( |
| ) |
const |
- Returns
- The delta time between the two last updates.
◆ getFrameTime()
unsigned long long nkGraphics::GlobalTimer::getFrameTime |
( |
| ) |
const |
The frame time, corresponding to the absolute time counter.
◆ getCurrentModuloTime()
unsigned long long nkGraphics::GlobalTimer::getCurrentModuloTime |
( |
| ) |
const |
- Returns
- The current modulo time, aka the frame time % modulo.
◆ getCurrentModulo()
unsigned long long nkGraphics::GlobalTimer::getCurrentModulo |
( |
| ) |
const |
- Returns
- The modulo currently applied.
◆ getLoopedSinceLastTime()
bool nkGraphics::GlobalTimer::getLoopedSinceLastTime |
( |
| ) |
const |
- Returns
- If the last update, while updating the time, made a loop based on the modulo.
◆ getCurrentYear()
int nkGraphics::GlobalTimer::getCurrentYear |
( |
| ) |
|
◆ getCurrentMonth()
int nkGraphics::GlobalTimer::getCurrentMonth |
( |
| ) |
|
◆ getCurrentDay()
int nkGraphics::GlobalTimer::getCurrentDay |
( |
| ) |
|
◆ getCurrentHour()
int nkGraphics::GlobalTimer::getCurrentHour |
( |
| ) |
|
◆ getCurrentMin()
int nkGraphics::GlobalTimer::getCurrentMin |
( |
| ) |
|
◆ getCurrentSec()
int nkGraphics::GlobalTimer::getCurrentSec |
( |
| ) |
|
The documentation for this class was generated from the following file: