Public Member Functions | List of all members
openmsx::RealTime Class Referencefinal

#include <RealTime.hh>

Inheritance diagram for openmsx::RealTime:
Inheritance graph
Collaboration diagram for openmsx::RealTime:
Collaboration graph

Public Member Functions

 RealTime (MSXMotherBoard &motherBoard, GlobalSettings &globalSettings, EventDelay &eventDelay)
 ~RealTime ()
double getRealDuration (EmuTime::param time1, EmuTime::param time2)
 Convert EmuTime to RealTime. More...
EmuDuration getEmuDuration (double realDur)
 Convert RealTime to EmuTime. More...
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. More...
void resync ()
void enable ()
void disable ()

Detailed Description

Definition at line 21 of file RealTime.hh.

Constructor & Destructor Documentation

◆ RealTime()

openmsx::RealTime::RealTime ( MSXMotherBoard motherBoard,
GlobalSettings globalSettings,
EventDelay eventDelay 

◆ ~RealTime()

openmsx::RealTime::~RealTime ( )

Definition at line 46 of file

Member Function Documentation

◆ disable()

void openmsx::RealTime::disable ( )

Definition at line 171 of file

◆ enable()

void openmsx::RealTime::enable ( )

Definition at line 165 of file

References resync().

◆ getEmuDuration()

EmuDuration openmsx::RealTime::getEmuDuration ( double  realDur)

Convert RealTime to EmuTime.

Definition at line 62 of file

References openmsx::EmuDuration::EmuDuration(), and openmsx::IntegerSetting::getInt().

◆ getRealDuration()

double openmsx::RealTime::getRealDuration ( EmuTime::param  time1,
EmuTime::param  time2 

Convert EmuTime to RealTime.

Definition at line 57 of file

◆ resync()

void openmsx::RealTime::resync ( )

Definition at line 154 of file

Referenced by enable(), and RealTime().

◆ timeLeft()

bool openmsx::RealTime::timeLeft ( uint64_t  us,
EmuTime::param  time 

Check that there is enough real time left before we reach as certain point in emulated time.

usReal time duration is micro seconds.
timePoint in emulated time.

Definition at line 67 of file

The documentation for this class was generated from the following files: