1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #ifndef __TIMESYNC_H__
15 #define __TIMESYNC_H__
19 class ModuleSpanningTree;
20 class SpanningTreeUtilities;
23 /** Create a timer which recurs every second, we inherit from InspTimer.
24 * InspTimer is only one-shot however, so at the end of each Tick() we simply
25 * insert another of ourselves into the pending queue :)
27 class TimeSyncTimer : public InspTimer
31 ModuleSpanningTree *Module;
33 TimeSyncTimer(InspIRCd *Instance, ModuleSpanningTree *Mod);
34 virtual void Tick(time_t TIME);
37 class CacheRefreshTimer : public InspTimer
41 SpanningTreeUtilities *Utils;
43 CacheRefreshTimer(InspIRCd *Instance, SpanningTreeUtilities* Util);
44 virtual void Tick(time_t TIME);