7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_TIMER_H
14 #define SUPERTUX_TIMER_H
16 extern unsigned int st_pause_ticks, st_pause_count;
18 unsigned int st_get_ticks(void);
19 void st_pause_ticks_init(void);
20 void st_pause_ticks_start(void);
21 void st_pause_ticks_stop(void);
28 unsigned int (*get_ticks) (void);
31 void init(bool st_ticks);
32 void start(unsigned int period);
35 /*======================================================================
36 int timer_check(timer_type* ptimer);
38 param : pointer to a timer which needs to be checked
39 return: NO = the timer is not started
42 ======================================================================*/
46 /*======================================================================
47 int timer_get_left(timer_type* ptimer);
49 param : pointer to a timer that you want to get the time left
50 return: the time left (in millisecond)
51 note : the returned value can be negative
52 ======================================================================*/
53 int timer_get_left(timer_type* ptimer);
54 int timer_get_gone(timer_type* ptimer);
55 void timer_fwrite(timer_type* ptimer, FILE* fi);
56 void timer_fread(timer_type* ptimer, FILE* fi);
58 #endif /*SUPERTUX_TIMER_H*/
60 /* Local Variables: */