static EpochTime() { Max = new EpochTime { EpochId = ushort.MaxValue, SecondsSinceEpoch = short.MaxValue }; }
// Eitan, This is not clear what it is used for?! public static int Compare(EpochTime left, EpochTime right) { if (left.EpochId > right.EpochId) { return(1); } if (left.EpochId < right.EpochId) { return(-1); } if (left.SecondsSinceEpoch > right.SecondsSinceEpoch) { return(1); } if (left.SecondsSinceEpoch < right.SecondsSinceEpoch) { return(-1); } return(0); }