chore: Add course material
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user