28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: timer.h,v 1.3 2006/12/30 13:31:01 debug Exp $ |
* $Id: timer.h,v 1.4 2007/06/07 15:36:25 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
struct timer; |
struct timer; |
35 |
|
|
36 |
|
#define TIMER_BASE_FREQUENCY 60.0 /* Hz */ |
37 |
|
|
38 |
struct timer *timer_add(double freq, void (*timer_tick)(struct timer *timer, |
struct timer *timer_add(double freq, void (*timer_tick)(struct timer *timer, |
39 |
void *extra), void *extra); |
void *extra), void *extra); |
40 |
void timer_remove(struct timer *t); |
void timer_remove(struct timer *t); |