mbed library sources(for async_print)
Fork of mbed-src by
Diff: common/Timer.cpp
- Revision:
- 358:9d7ef901f004
- Parent:
- 212:34d62c0b2af6
- Child:
- 525:c320967f86b9
--- a/common/Timer.cpp Fri Oct 17 14:15:08 2014 +0100 +++ b/common/Timer.cpp Mon Oct 20 08:45:07 2014 +0100 @@ -23,8 +23,10 @@ } void Timer::start() { - _start = us_ticker_read(); - _running = 1; + if (!_running) { + _start = us_ticker_read(); + _running = 1; + } } void Timer::stop() {