openMSX
EmuTime.cc
Go to the documentation of this file.
1 #include "EmuTime.hh"
2 #include <limits>
3 #include <iostream>
4 
5 namespace openmsx {
6 
7 const EmuTime EmuTime::zero(uint64_t(0));
8 const EmuTime EmuTime::infinity(std::numeric_limits<uint64_t>::max());
9 
10 std::ostream& operator<<(std::ostream& os, EmuTime::param time)
11 {
12  os << time.time;
13  return os;
14 }
15 
16 template<typename Archive>
17 void EmuTime::serialize(Archive& ar, unsigned /*version*/)
18 {
19  ar.serialize("time", time);
20 }
22 
23 } // namespace openmsx
vecN< N, T > max(const vecN< N, T > &x, const vecN< N, T > &y)
Definition: gl_vec.hh:287
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition: serialize.hh:1006
std::ostream & operator<<(std::ostream &os, EmuTime::param time)
Definition: EmuTime.cc:10
void serialize(Archive &ar, T &t, unsigned version)