input: Fix VRR for constrained cursors (#6877)
This commit is contained in:
parent
f5db483973
commit
ee8116ac5d
12 changed files with 100 additions and 17 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Timer.hpp"
|
||||
#include <chrono>
|
||||
|
||||
void CTimer::reset() {
|
||||
m_tpLastReset = std::chrono::steady_clock::now();
|
||||
|
|
@ -8,8 +9,8 @@ std::chrono::steady_clock::duration CTimer::getDuration() {
|
|||
return std::chrono::steady_clock::now() - m_tpLastReset;
|
||||
}
|
||||
|
||||
long CTimer::getMillis() {
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(getDuration()).count();
|
||||
float CTimer::getMillis() {
|
||||
return std::chrono::duration_cast<std::chrono::microseconds>(getDuration()).count() / 1000.f;
|
||||
}
|
||||
|
||||
float CTimer::getSeconds() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue