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;
|
|
|
|
|
2017-12-19 21:00:02 +01:00
|
|
|
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_
|