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 return: NO = the timer is not started
39 ======================================================================*/
43 /*======================================================================
44 return: the time left (in millisecond)
45 note : the returned value can be negative
46 ======================================================================*/
50 void fwrite(FILE* fi);
54 #endif /*SUPERTUX_TIMER_H*/
56 /* Local Variables: */