openMSX
Classes | Namespaces | Typedefs | Variables
EmuDuration.hh File Reference
#include "serialize.hh"
#include <cassert>
#include <cstdint>
#include <limits>
#include <type_traits>
Include dependency graph for EmuDuration.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openmsx::EmuDuration
 
struct  openmsx::SerializeAsMemcpy< EmuDuration >
 
class  openmsx::EmuDurationCompactStorage< T >
 

Namespaces

 openmsx
 Thanks to enen for testing this on a real cartridge:
 

Typedefs

using openmsx::EmuDuration32 = EmuDurationCompactStorage< uint32_t >
 
using openmsx::EmuDuration16 = EmuDurationCompactStorage< uint16_t >
 
using openmsx::EmuDuration8 = EmuDurationCompactStorage< uint8_t >
 
template<uint64_t MAX>
using openmsx::EmuDurationStorageFor = std::conditional_t<(MAX > std::numeric_limits< uint32_t >::max()), EmuDuration, std::conditional_t<(MAX > std::numeric_limits< uint16_t >::max()), EmuDuration32, std::conditional_t<(MAX > std::numeric_limits< uint8_t >::max()), EmuDuration16, EmuDuration8 > >>
 

Variables

constexpr uint64_t openmsx::MAIN_FREQ = 3579545ULL * 960
 
constexpr unsigned openmsx::MAIN_FREQ32 = MAIN_FREQ