summaryrefslogtreecommitdiff
path: root/include/timer.h
blob: 894a0d0e1251ba4cc69804ab866f9c50d0a5d25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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) {}
};