11 #include "threads/CriticalSection.h" 12 #include "threads/Event.h" 13 #include "threads/Thread.h" 25 int64_t GetTime(
bool interpolated =
true);
26 void SetSpeed(
double Speed);
28 double GetRefreshRate(
double* interval =
nullptr);
29 bool GetClockInfo(
int& MissedVblanks,
double& ClockSpeed,
double& RefreshRate)
const;
32 void Process()
override;
34 void UpdateRefreshrate();
35 void UpdateClock(
int NrVBlanks,
bool CheckMissed);
36 double UpdateInterval()
const;
37 int64_t TimeOfNextVblank()
const;
38 static void CBUpdateClock(
int NrVBlanks, uint64_t time,
void *clock);
41 int64_t m_LastIntTime;
42 double m_CurrTimeFract;
44 int64_t m_SystemFrequency;
49 int m_TotalMissedVblanks;
54 mutable CCriticalSection m_CritSection;
56 std::unique_ptr<CVideoSync> m_pVideoSync;
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
Definition: VideoReferenceClock.h:19
Definition: VideoSync.h:16