openMSX
Classes | Namespaces | Typedefs | Variables
EmuDuration.hh File Reference
#include "narrow.hh"
#include "serialize.hh"
#include <cassert>
#include <concepts>
#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

namespace  openmsx
 This file implemented 3 utility functions:
 
namespace  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 double openmsx::RECIP_MAIN_FREQ = 1.0 / MAIN_FREQ