summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 18:56:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-23 18:56:21 +0000
commit932f00f8bfa8a78626fe52b8f20f159c18f24c8e (patch)
tree733352a6fa6749f8e044a8c921ec18935641e1cd /include
parent4d057b65c47b72358c058a8c54e7cd0b80bb62ec (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/timer.h15
1 files changed, 15 insertions, 0 deletions
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) {}
+};
+
+