openMSX
|
#include <EmuDuration.hh>
Public Types | |
using | param = const EmuDuration & |
Public Member Functions | |
constexpr | EmuDuration ()=default |
constexpr | EmuDuration (uint64_t n) |
constexpr | EmuDuration (double duration) |
constexpr double | toDouble () const |
constexpr uint64_t | length () const |
constexpr auto | operator<=> (const EmuDuration &) const =default |
constexpr EmuDuration | divRoundUp (unsigned fact) const |
constexpr unsigned | divUp (EmuDuration::param d) const |
constexpr double | div (EmuDuration::param d) const |
constexpr EmuDuration & | operator*= (unsigned fact) |
constexpr EmuDuration & | operator*= (double fact) |
constexpr EmuDuration & | operator/= (double fact) |
constexpr unsigned | getTicksAt (unsigned freq) const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned) |
Static Public Member Functions | |
static constexpr EmuDuration | sec (unsigned x) |
static constexpr EmuDuration | msec (unsigned x) |
static constexpr EmuDuration | usec (unsigned x) |
static constexpr EmuDuration | hz (unsigned x) |
static constexpr EmuDuration | epsilon () |
static constexpr EmuDuration | zero () |
static constexpr EmuDuration | infinity () |
Friends | |
class | EmuTime |
constexpr friend EmuDuration | operator% (const EmuDuration &l, const EmuDuration &r) |
constexpr friend EmuDuration | operator+ (const EmuDuration &l, const EmuDuration &r) |
constexpr friend EmuDuration | operator* (const EmuDuration &l, uint64_t fact) |
constexpr friend EmuDuration | operator/ (const EmuDuration &l, unsigned fact) |
constexpr friend unsigned | operator/ (const EmuDuration &l, const EmuDuration &r) |
Definition at line 21 of file EmuDuration.hh.
using openmsx::EmuDuration::param = const EmuDuration& |
Definition at line 30 of file EmuDuration.hh.
|
constexprdefault |
Referenced by divRoundUp(), epsilon(), hz(), infinity(), msec(), sec(), usec(), and zero().
|
inlineexplicitconstexpr |
Definition at line 38 of file EmuDuration.hh.
|
inlineexplicitconstexpr |
Definition at line 39 of file EmuDuration.hh.
|
inlineconstexpr |
Definition at line 85 of file EmuDuration.hh.
|
inlineconstexpr |
Definition at line 67 of file EmuDuration.hh.
References EmuDuration().
|
inlineconstexpr |
Definition at line 78 of file EmuDuration.hh.
|
inlinestaticconstexpr |
Definition at line 96 of file EmuDuration.hh.
References EmuDuration().
|
inlineconstexpr |
Definition at line 102 of file EmuDuration.hh.
References openmsx::MAIN_FREQ32.
Referenced by openmsx::LaserdiscPlayer::extControl(), and openmsx::CasImage::getSampleAt().
|
inlinestaticconstexpr |
Definition at line 48 of file EmuDuration.hh.
References EmuDuration(), and openmsx::MAIN_FREQ.
Referenced by openmsx::CasImage::getEndTime(), and openmsx::MSXFacMidiInterface::MSXFacMidiInterface().
|
inlinestaticconstexpr |
Definition at line 117 of file EmuDuration.hh.
References EmuDuration().
Referenced by openmsx::AviRecorder::addImage().
|
inlineconstexpr |
Definition at line 53 of file EmuDuration.hh.
Referenced by openmsx::ResampleBlip< CHANNELS >::ResampleBlip(), and openmsx::DynamicClock::setPeriod().
|
inlinestaticconstexpr |
Definition at line 44 of file EmuDuration.hh.
References EmuDuration(), and openmsx::MAIN_FREQ.
Referenced by openmsx::MSXFDC::MSXFDC().
|
inlineconstexpr |
Definition at line 90 of file EmuDuration.hh.
|
inlineconstexpr |
Definition at line 88 of file EmuDuration.hh.
|
inlineconstexpr |
Definition at line 92 of file EmuDuration.hh.
|
constexprdefault |
|
inlinestaticconstexpr |
Definition at line 42 of file EmuDuration.hh.
References EmuDuration(), and openmsx::MAIN_FREQ.
Referenced by openmsx::DirAsDSK::checkCaches(), and openmsx::DirAsDSK::readSectorImpl().
|
inline |
Definition at line 123 of file EmuDuration.hh.
Referenced by openmsx::V9990CmdEngine::serialize().
|
inlineconstexpr |
Definition at line 52 of file EmuDuration.hh.
References openmsx::RECIP_MAIN_FREQ.
Referenced by openmsx::AviRecorder::addImage().
|
inlinestaticconstexpr |
Definition at line 46 of file EmuDuration.hh.
References EmuDuration(), and openmsx::MAIN_FREQ.
|
inlinestaticconstexpr |
Definition at line 112 of file EmuDuration.hh.
References EmuDuration().
Referenced by openmsx::V9990CmdEngine::estimateCmdEnd(), openmsx::Autofire::getSignal(), and openmsx::ClockPin::getTicksBetween().
|
friend |
Definition at line 34 of file EmuDuration.hh.
|
friend |
Definition at line 59 of file EmuDuration.hh.
|
friend |
Definition at line 63 of file EmuDuration.hh.
|
friend |
Definition at line 61 of file EmuDuration.hh.
|
friend |
Definition at line 69 of file EmuDuration.hh.
|
friend |
Definition at line 65 of file EmuDuration.hh.