mirror of https://github.com/ARMmbed/mbed-os.git
commit
996e49964c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue