From f6e9222205dcc2c44f3aca7dfca85a324358b837 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 12 Apr 2005 18:11:46 +0000 Subject: Added OnBackgroundTimer method, ticks every 5 seconds approximately git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1058 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 34549b6c2..a366ebb73 100644 --- a/include/modules.h +++ b/include/modules.h @@ -367,6 +367,13 @@ class Module : public classbase * module). */ virtual void OnLoadModule(Module* mod,std::string name); + + /** Called once every five seconds for background processing. + * This timer can be used to control timed features. Its period is not accurate + * enough to be used as a clock, but it is gauranteed to be called at least once in + * any five second period, directly from the main loop of the server. + */ + virtual void OnBackgroundTimer(time_t curtime); }; -- cgit v1.2.3