- /// Time a game is running. (Non-pause mode, etc.)
- unsigned int st_get_ticks(void);
+ static void pause_init();
+ static void pause_start();
+ static void pause_stop();
+ static bool pause_started();
- void st_pause_ticks_init(void);
- void st_pause_ticks_start(void);
- void st_pause_ticks_stop(void);
- bool st_pause_ticks_started(void);
+ private:
+ static unsigned int pause_ticks;
+ static unsigned int pause_count;
+
+ };
/// Timer
/** This class can be used as stop watch
for example. It's also possible to calculate
frames per seconds and things like that with it.
It's a general timing class, but it
/// Timer
/** This class can be used as stop watch
for example. It's also possible to calculate
frames per seconds and things like that with it.
It's a general timing class, but it
- /** @param st_ticks: If true internally st_get_ticks() is used, else SDL_GetTicks() is used. */
- void init(bool st_ticks);
+ /** @param st_ticks: If true internally Ticks::get() is used, else SDL_GetTicks() is used. */
+ void init(bool game_ticks);