|
|
void | start (void) |
|
void | stop (void) |
|
void | restart (void) |
| | Alias for start.
|
|
void | pause (void) |
|
void | unpause (void) |
|
uint32 | ticks (void) const |
|
bool | started (void) const |
|
bool | paused (void) const |
|
const std::string | ticksAsString (void) const |
|
real32 | to_seconds () const |
|
| static uint32 | to_milliseconds (real32 seconds) |
| | Convert milliseconds to seconds.
|
| static real32 | to_seconds (uint32 ticks) |
| | Convert a timer value to seconds.
|
Definition at line 39 of file Timer.hpp.
◆ to_milliseconds()
| uint32 nom::Timer::to_milliseconds |
( |
real32 | seconds | ) |
|
|
static |
Convert milliseconds to seconds.
- Parameters
-
- See also
- ::ticks, nom::ticks
◆ to_seconds()
| real32 nom::Timer::to_seconds |
( |
uint32 | ticks | ) |
|
|
static |
Convert a timer value to seconds.
- Parameters
-
- See also
- ::ticks, nom::ticks
◆ elapsed_ticks
| uint32 nom::Timer::elapsed_ticks |
|
private |
Milliseconds since timer start.
Definition at line 79 of file Timer.hpp.
◆ paused_ticks
| uint32 nom::Timer::paused_ticks |
|
private |
Holds ticks while paused.
Definition at line 82 of file Timer.hpp.
◆ timer_paused
| bool nom::Timer::timer_paused |
|
private |
Tracks whether we are paused or not.
Definition at line 85 of file Timer.hpp.
◆ timer_started
| bool nom::Timer::timer_started |
|
private |
Tracks whether we are started or not.
Definition at line 88 of file Timer.hpp.
The documentation for this class was generated from the following file:
- /home/jeff/Projects/nomlib.git/include/nomlib/system/Timer.hpp