Slightly more consise.

This commit is contained in:
2018-02-13 10:39:43 +01:00
parent 2192408ef9
commit 74cf511436
3 changed files with 5 additions and 2 deletions

View File

@@ -102,8 +102,7 @@ void fmri::throttleIdleFunc()
const auto diff = now - lastCalled;
if (diff < refreshRate) {
const auto remaining = refreshRate - diff;
this_thread::sleep_for(remaining);
this_thread::sleep_for(refreshRate - diff);
}
lastCalled = now;