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

Definition at line 46 of file RealTime.cc.

Member Function Documentation

◆ disable()

void openmsx::RealTime::disable ( )

Definition at line 171 of file RealTime.cc.

◆ 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::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 RealTime.cc.

◆ resync()

void openmsx::RealTime::resync ( )

Definition at line 154 of file RealTime.cc.

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.

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

Definition at line 67 of file RealTime.cc.


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