Ejemplo n.º 1
0
 static EpochTime()
 {
     Max = new EpochTime
     {
         EpochId           = ushort.MaxValue,
         SecondsSinceEpoch = short.MaxValue
     };
 }
Ejemplo n.º 2
0
        // 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);
        }