]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/timer.h
Convert ConfigTag::CheckRange to a function template.
[user/henk/code/inspircd.git] / include / timer.h
index 2ac0517b84a3a62cf573f9523d4675a1a8e62af2..a116d456c4e7a78cc499ba53862c9e8e76ebc76b 100644 (file)
@@ -76,7 +76,7 @@ class CoreExport Timer
 
        /** Sets the interval between two ticks.
         */
-       void SetInterval(time_t interval);
+       void SetInterval(unsigned int interval);
 
        /** Called when the timer ticks.
         * You should override this method with some useful code to
@@ -111,14 +111,14 @@ class CoreExport Timer
        }
 };
 
-typedef std::multimap<time_t, Timer*> TimerMap;
-
 /** This class manages sets of Timers, and triggers them at their defined times.
  * This will ensure timers are not missed, as well as removing timers that have
  * expired and allowing the addition of new ones.
  */
 class CoreExport TimerManager
 {
+       typedef std::multimap<time_t, Timer*> TimerMap;
+
        /** A list of all pending timers
         */
        TimerMap Timers;