Merge pull request #552 from Sissors/master

API: Timer - start() behavior (bug)fix
pull/583/head
Martin Kojtal 2014-10-20 08:38:09 +01:00
commit 996e49964c
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ Timer::Timer() : _running(), _start(), _time() {
}
void Timer::start() {
_start = us_ticker_read();
_running = 1;
if (!_running) {
_start = us_ticker_read();
_running = 1;
}
}
void Timer::stop() {