summaryrefslogtreecommitdiff
path: root/include/timer.h
blob: 143ff4d9701d58d5b8b8f9bd3a3540a5eaa335d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class InspTimer
{
 private:
	time_t trigger;
 public:
	InspTimer(long secs_from_now) : trigger(time(NULL) + secs_from_now) { }
	virtual ~InspTimer() { }
	virtual time_t GetTimer()
	{
		return trigger;
	}
	virtual void Tick(time_t TIME) {}
};

void TickTimers(time_t TIME);
void AddTimer(InspTimer* T);