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) {} };