29 #ifndef NOMLIB_SDL_ANIMATION_TIMER_HEADERS
30 #define NOMLIB_SDL_ANIMATION_TIMER_HEADERS
37 #include "nomlib/config.hpp"
53 uint32 ticks (
void )
const;
55 bool started (
void )
const;
57 const std::string ticksAsString (
void )
const;
60 uint32
seconds(
float milliseconds )
const;
62 uint32 framerate (
void )
const;
64 void setFrameRate ( uint32 rate );
80 #endif // include guard defined
bool timer_started
Tracks whether we are started or not.
uint32 seconds(float milliseconds) const
Helper method; conversion from milliseconds to seconds.
void restart(void)
Alias for start.
uint32 frame_rate
Convenience container.
uint32 elapsed_ticks
Milliseconds since timer start.