fix SteadyClock vs Systemclock issues
This commit is contained in:
parent
6bd04de5f6
commit
a66adb6dcd
|
@ -534,6 +534,9 @@ public:
|
||||||
return shared_data->last_viewed_time;
|
return shared_data->last_viewed_time;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
void setLastViewed() {
|
||||||
|
setLastViewed(std::chrono::system_clock::now());
|
||||||
|
}
|
||||||
void setLastViewed(SystemTimePoint new_time) {
|
void setLastViewed(SystemTimePoint new_time) {
|
||||||
if (shared_data && shared_data->valid)
|
if (shared_data && shared_data->valid)
|
||||||
shared_data->last_viewed_time =
|
shared_data->last_viewed_time =
|
||||||
|
|
|
@ -582,7 +582,7 @@ void MonitorStream::runStream() {
|
||||||
}
|
}
|
||||||
|
|
||||||
now = std::chrono::steady_clock::now();
|
now = std::chrono::steady_clock::now();
|
||||||
monitor->setLastViewed(now);
|
monitor->setLastViewed();
|
||||||
|
|
||||||
bool was_paused = paused;
|
bool was_paused = paused;
|
||||||
bool got_command = false; // commands like zoom should output a frame even if paused
|
bool got_command = false; // commands like zoom should output a frame even if paused
|
||||||
|
|
Loading…
Reference in New Issue