mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7975 from tkem/fix/timer-read-range
Use high resolution time for Timer::read().pull/8298/head
commit
9b0e5346cc
|
@ -79,7 +79,7 @@ int Timer::read_us()
|
|||
|
||||
float Timer::read()
|
||||
{
|
||||
return (float)read_us() / 1000000.0f;
|
||||
return (float)read_high_resolution_us() / 1000000.0f;
|
||||
}
|
||||
|
||||
int Timer::read_ms()
|
||||
|
|
Loading…
Reference in New Issue