29#ifndef NOMLIB_SDL_TIMER_HEADERS
30#define NOMLIB_SDL_TIMER_HEADERS
35#include "nomlib/config.hpp"
43 virtual ~Timer (
void );
52 void unpause (
void );
54 uint32 ticks (
void )
const;
56 bool started (
void )
const;
57 bool paused (
void )
const;
59 const std::string ticksAsString (
void )
const;
61 real32 to_seconds()
const;
void restart(void)
Alias for start.
bool timer_started
Tracks whether we are started or not.
bool timer_paused
Tracks whether we are paused or not.
static real32 to_seconds(uint32 ticks)
Convert a timer value to seconds.
static uint32 to_milliseconds(real32 seconds)
Convert milliseconds to seconds.
uint32 paused_ticks
Holds ticks while paused.
uint32 elapsed_ticks
Milliseconds since timer start.