mirror of https://github.com/ARMmbed/mbed-os.git
Use high resolution time for Timer::read().
parent
4fb3aec84a
commit
9c4ec9cfae
|
@ -79,7 +79,7 @@ int Timer::read_us()
|
||||||
|
|
||||||
float Timer::read()
|
float Timer::read()
|
||||||
{
|
{
|
||||||
return (float)read_us() / 1000000.0f;
|
return (float)read_high_resolution_us() / 1000000.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timer::read_ms()
|
int Timer::read_ms()
|
||||||
|
|
Loading…
Reference in New Issue