summaryrefslogtreecommitdiff
path: root/include/timers.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-10 20:31:31 -0400
committerAdam <Adam@anope.org>2010-09-10 20:31:31 -0400
commitf00e76d30a86acf0f18bcde5647eedd50de50569 (patch)
tree04af81a883ea6e71ec36e35a2822487c7f8192c6 /include/timers.h
parent9eb7562bee7f2a52cf91b0ab0ebc10351f2a46f2 (diff)
Added Anope::CurTime to keep us from calling time() everywhere
Diffstat (limited to 'include/timers.h')
-rw-r--r--include/timers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/timers.h b/include/timers.h
index 79443d753..433f8adcd 100644
--- a/include/timers.h
+++ b/include/timers.h
@@ -42,7 +42,7 @@ class CoreExport Timer : public Extensible
* @param now The time now
* @param repeating Repeat this timer every time_from_now if this is true
*/
- Timer(long time_from_now, time_t now = time(NULL), bool repeating = false);
+ Timer(long time_from_now, time_t now = Anope::CurTime, bool repeating = false);
/** Default destructor, removes the timer from the list
*/
@@ -103,7 +103,7 @@ class CoreExport TimerManager : public Extensible
/** Tick all pending timers
* @param ctime The current time
*/
- static void TickTimers(time_t ctime = time(NULL));
+ static void TickTimers(time_t ctime = Anope::CurTime);
/** Compares two timers
*/