24 lines
320 B
C++
24 lines
320 B
C++
#ifndef TIMERSET_H
|
|
#define TIMERSET_H
|
|
|
|
#include <ctime>
|
|
|
|
class Timer;
|
|
|
|
class TimerSet {
|
|
public:
|
|
TimerSet();
|
|
|
|
void pollAllTimers();
|
|
void addATimer(Timer *);
|
|
|
|
private:
|
|
Timer *timers[40];
|
|
int timersInUse;
|
|
std::time_t previousTime;
|
|
};
|
|
|
|
extern TimerSet theTimerSet;
|
|
|
|
#endif
|