14class EventDistributor;
45 bool timeLeft(uint64_t us, EmuTime::param time);
58 void sync(EmuTime::param time,
bool allowSleep);
61 void executeUntil(EmuTime::param time)
override;
64 int signalEvent(
const Event& event)
override;
69 void update(
const SpeedManager& speedManager)
noexcept override;
73 void internalSync(EmuTime::param time,
bool allowSleep);
83 uint64_t idealRealTime;
84 EmuTime emuTime = EmuTime::zero();
This class is responsible for translating host events into MSX events.
This class contains settings that are used by several other class (including some singletons).
Generic Gang-of-Four Observer class, templatized edition.
double getRealDuration(EmuTime::param time1, EmuTime::param time2)
Convert EmuTime to RealTime.
bool timeLeft(uint64_t us, EmuTime::param time)
Check that there is enough real time left before we reach as certain point in emulated time.
RealTime(MSXMotherBoard &motherBoard, GlobalSettings &globalSettings, EventDelay &eventDelay)
EmuDuration getEmuDuration(double realDur)
Convert RealTime to EmuTime.
Every class that wants to get scheduled at some point must inherit from this class.
Manages the desired ratio between EmuTime and real time.
Manages the throttle state of openMSX.
This file implemented 3 utility functions: