mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
fix rendertime inaccuracy
This commit is contained in:
parent
b505db103c
commit
e473516bb7
@ -307,7 +307,7 @@ void* CWaylandOpenGLDriver::getWindowHandle () const {
|
||||
}
|
||||
|
||||
float CWaylandOpenGLDriver::getRenderTime () const {
|
||||
return std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::high_resolution_clock::now() - renderStart).count() / 1000000;
|
||||
return (float)std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::high_resolution_clock::now() - renderStart).count() / 1000000.0;
|
||||
}
|
||||
|
||||
bool CWaylandOpenGLDriver::closeRequested () {
|
||||
|
Loading…
Reference in New Issue
Block a user