7template<
typename Archive>
10 ar.serialize(
"lastTick", lastTick);
11 if (ar.versionAtLeast(version, 2)) {
13 ar.serialize(
"period", period);
20 assert(Archive::IS_LOADER);
22 ar.serialize(
"freq", freq);
Represents a clock with a variable frequency.
void serialize(Archive &ar, unsigned version)
EmuDuration getPeriod() const
Returns the length of one clock-cycle.
void setPeriod(EmuDuration period)
Set the duration of a clock tick.
void setFreq(unsigned freq)
Change the frequency at which this clock ticks.
This file implemented 3 utility functions:
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)