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

Manages the desired ratio between emutime and real time. More...

#include <SpeedManager.hh>

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

Public Member Functions

 SpeedManager (CommandController &commandController)
 
 ~SpeedManager ()
 
double getSpeed () const
 Return the desired ratio between emutime and real time. More...
 
- Public Member Functions inherited from openmsx::Subject< SpeedManager >
void attach (Observer< SpeedManager > &observer)
 
void detach (Observer< SpeedManager > &observer)
 
bool anyObservers () const
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Subject< SpeedManager >
 Subject ()=default
 
 ~Subject ()
 
void notify () const
 

Detailed Description

Manages the desired ratio between emutime and real time.

Currently this just republishes the value of the "speed" setting.

Definition at line 16 of file SpeedManager.hh.

Constructor & Destructor Documentation

◆ SpeedManager()

openmsx::SpeedManager::SpeedManager ( CommandController commandController)
explicit

Definition at line 10 of file SpeedManager.cc.

References openmsx::Subject< T >::attach().

◆ ~SpeedManager()

openmsx::SpeedManager::~SpeedManager ( )

Definition at line 29 of file SpeedManager.cc.

References openmsx::Subject< T >::detach().

Member Function Documentation

◆ getSpeed()

double openmsx::SpeedManager::getSpeed ( ) const
inline

Return the desired ratio between emutime and real time.

Definition at line 26 of file SpeedManager.hh.

Referenced by openmsx::PixelRenderer::frameStart(), openmsx::MSXMixer::getEffectiveSpeed(), openmsx::RealTime::getEmuDuration(), and openmsx::RealTime::getRealDuration().


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