breakhack/src/timer.h

18 lines
301 B
C
Raw Normal View History

2017-12-05 08:30:08 +01:00
#ifndef TIMER_H_
#define TIMER_H_
2017-12-08 14:40:33 +01:00
#include <stdbool.h>
2017-12-05 08:30:08 +01:00
typedef struct {
unsigned int startTime;
} Timer;
Timer* timer_create(void);
2017-12-05 08:30:08 +01:00
void timer_start(Timer*);
void timer_stop(Timer*);
2017-12-08 14:40:33 +01:00
bool timer_started(Timer*);
2017-12-05 08:30:08 +01:00
unsigned int timer_get_ticks(Timer*);
void timer_destroy(Timer*);
#endif // TIMER_H_