Merge pull request #7975 from tkem/fix/timer-read-range

Use high resolution time for Timer::read().
pull/8298/head
Martin Kojtal 2018-10-01 11:46:18 +02:00 committed by GitHub
commit 9b0e5346cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()