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
 This file implemented 3 utility functions:
 
 openmsx::detail
 

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 > detail::max32), EmuDuration, std::conditional_t<(MAX > detail::max16), EmuDuration32, std::conditional_t<(MAX > detail::max8), EmuDuration16, EmuDuration8 > >>
 

Variables

constexpr uint64_t openmsx::MAIN_FREQ = 3579545ULL * 960
 
constexpr unsigned openmsx::MAIN_FREQ32 = MAIN_FREQ
 
constexpr uint64_t openmsx::detail::max32 = std::numeric_limits<uint32_t>::max()
 
constexpr uint64_t openmsx::detail::max16 = std::numeric_limits<uint16_t>::max()
 
constexpr uint64_t openmsx::detail::max8 = std::numeric_limits<uint8_t >::max()