openMSX
EmuTime.cc
Go to the documentation of this file.
1 #include "EmuTime.hh"
2 #include "serialize.hh"
3 #include <limits>
4 #include <iostream>
5 
6 namespace openmsx {
7 
8 const EmuTime EmuTime::zero(uint64_t(0));
9 const EmuTime EmuTime::infinity(std::numeric_limits<uint64_t>::max());
10 
11 std::ostream& operator<<(std::ostream& os, EmuTime::param time)
12 {
13  os << time.time;
14  return os;
15 }
16 
17 template<typename Archive>
18 void EmuTime::serialize(Archive& ar, unsigned /*version*/)
19 {
20  ar.serialize("time", time);
21 }
23 
24 } // 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:840
std::ostream & operator<<(std::ostream &os, EmuTime::param time)
Definition: EmuTime.cc:11
void serialize(Archive &ar, T &t, unsigned version)