]> git.localhorst.tv Git - l2e.git/commitdiff
added interval alias function for timers
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Aug 2012 20:15:47 +0000 (22:15 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Aug 2012 20:15:47 +0000 (22:15 +0200)
src/app/Timer.h

index 0a085418739be44a53c24e83281de511d201a394..b7711d679481746e8be3c96d41a28e7fd3260770 100644 (file)
@@ -115,6 +115,10 @@ public:
                data.push_back(TimerData<Time>(duration));
                return Timer<Time>(&data.back());
        }
+       Timer<Time> StartInterval(Time duration) {
+               data.push_back(TimerData<Time>(duration));
+               return Timer<Time>(&data.back());
+       }
 
 private:
        std::list<TimerData<Time> > data;