From 74361bec0586466bda872d2d846a768d95d6cd5f Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Tue, 7 Jun 2011 06:16:57 +0200 Subject: added a Timer::SetSecs() function --- include/timers.h | 5 +++++ src/timers.cpp | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/include/timers.h b/include/timers.h index d479df23e..71ab8a153 100644 --- a/include/timers.h +++ b/include/timers.h @@ -63,6 +63,11 @@ class CoreExport Timer : public Extensible */ bool GetRepeat() const; + /** Set the interval between ticks + * @paramt t The new interval + */ + void SetSecs(time_t t); + /** Returns the interval between ticks * @return The interval */ 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 */ -- cgit