summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2011-06-07 06:16:57 +0200
committerDukePyrolator <DukePyrolator@anope.org>2011-06-07 06:16:57 +0200
commit74361bec0586466bda872d2d846a768d95d6cd5f (patch)
treec266220fe827e1d6cee3d987009a96be33620a11 /src
parenta087e7f6643cc31246e7d7d4555d2dc8c0c485ad (diff)
added a Timer::SetSecs() function
Diffstat (limited to 'src')
-rw-r--r--src/timers.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timers.cpp b/src/timers.cpp
index ea0122a9c..0a40106d6 100644
--- a/src/timers.cpp
+++ b/src/timers.cpp
@@ -66,6 +66,14 @@ time_t Timer::GetSetTime() const
return settime;
}
+/** Sets the interval between ticks
+ * @param t The new interval
+ */
+void Timer::SetSecs(time_t t)
+{
+ secs = t;
+}
+
/** Returns the interval between ticks
* @return The interval
*/