From 932f00f8bfa8a78626fe52b8f20f159c18f24c8e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Feb 2006 18:56:21 +0000 Subject: First revision of new timer code, not in the makefile yet (so it wont build till im done) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3297 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/timer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/timer.h (limited to 'include') diff --git a/include/timer.h b/include/timer.h new file mode 100644 index 000000000..b6fd62281 --- /dev/null +++ b/include/timer.h @@ -0,0 +1,15 @@ +class InspTimer +{ + private: + time_t trigger; + public: + virtual 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) {} +}; + + -- cgit v1.2.3