29 #ifndef NOMLIB_SDL_TIMER_HEADERS
30 #define NOMLIB_SDL_TIMER_HEADERS
37 #include "nomlib/config.hpp"
45 virtual ~
Timer (
void );
54 void unpause (
void );
56 uint32 ticks (
void )
const;
58 bool started (
void )
const;
59 bool paused (
void )
const;
61 const std::string ticksAsString (
void )
const;
64 uint32
seconds(
float milliseconds )
const;
83 #endif // NOMLIB_SDL_TIMER_HEADERS defined
uint32 paused_ticks
Holds ticks while paused.
void restart(void)
Alias for start.
bool timer_paused
Tracks whether we are paused or not.
uint32 elapsed_ticks
Milliseconds since timer start.
uint32 seconds(float milliseconds) const
Helper method; conversion from milliseconds to seconds.
bool timer_started
Tracks whether we are started or not.