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

#include <RealTime.hh>

Inheritance diagram for openmsx::RealTime:
Inheritance graph
[legend]
Collaboration diagram for openmsx::RealTime:
Collaboration graph
[legend]

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 
)
explicit

◆ ~RealTime()

openmsx::RealTime::~RealTime ( )

Member Function Documentation

◆ disable()

void openmsx::RealTime::disable ( )

Definition at line 171 of file RealTime.cc.

References openmsx::Schedulable::removeSyncPoint().

◆ enable()

void openmsx::RealTime::enable ( )

Definition at line 165 of file RealTime.cc.

References resync().

◆ getEmuDuration()

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

Convert RealTime to EmuTime.

Definition at line 62 of file RealTime.cc.

References openmsx::IntegerSetting::getInt().

Referenced by resync(), and timeLeft().

◆ getRealDuration()

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

Convert EmuTime to RealTime.

Definition at line 57 of file RealTime.cc.

References openmsx::IntegerSetting::getInt().

Referenced by timeLeft().

◆ resync()

void openmsx::RealTime::resync ( )

◆ timeLeft()

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

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