diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/utils/timer.cpp | 12 |
2 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2007-01-03 Björn Steinbrink <B.Steinbrink@gmx.de> + + * src/utils/timer.cpp: Removed extra semicolons that break builds with + --pedantic. + 2007-01-03 Guillaume Melquiond <guillaume.melquiond@gmail.com> * src/debug.h, src/debug.cpp, src/Makefile.am: Removed obsolete debug diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp index f055e664..b0a05bc5 100644 --- a/src/utils/timer.cpp +++ b/src/utils/timer.cpp @@ -30,7 +30,7 @@ Timer::Timer(unsigned int ms, bool createActive) active = createActive; interval = ms; lastpulse = getTimeInMillisec(); -}; +} void Timer::sleep() { @@ -56,23 +56,23 @@ int Timer::poll() lastpulse += interval * elapsed; }; return elapsed; -}; +} void Timer::start() { active = true; lastpulse = getTimeInMillisec(); -}; +} void Timer::stop() { active = false; -}; +} void Timer::changeInterval(unsigned int newinterval) { interval = newinterval; -}; +} uint64_t Timer::getTimeInMillisec() { @@ -82,6 +82,6 @@ uint64_t Timer::getTimeInMillisec() gettimeofday(&time, 0); timeInMillisec = (uint64_t)time.tv_sec * 1000 + time.tv_usec / 1000; return timeInMillisec; -}; +} } // ::utils |