diff options
Diffstat (limited to 'src/utils/timer.cpp')
-rw-r--r-- | src/utils/timer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 |