コード例 #1
0
        static Clock()
        {
            //TODO com.hazelcast.clock.offset
            var clockOffset = "0"; //Runtime.GetProperty("com.hazelcast.clock.offset");
            var offset      = 0L;

            if (clockOffset != null)
            {
                try
                {
                    offset = long.Parse(clockOffset);
                }
                catch (FormatException)
                {
                }
            }
            if (offset == 0L)
            {
                TheClock = new SystemClock();
            }
            else
            {
                TheClock = new SystemOffsetClock(offset);
            }
        }
コード例 #2
0
 static Clock()
 {
     //TODO com.hazelcast.clock.offset
     var clockOffset = "0"; //Runtime.GetProperty("com.hazelcast.clock.offset");
     var offset = 0L;
     if (clockOffset != null)
     {
         try
         {
             offset = long.Parse(clockOffset);
         }
         catch (FormatException)
         {
         }
     }
     if (offset == 0L)
     {
         TheClock = new SystemClock();
     }
     else
     {
         TheClock = new SystemOffsetClock(offset);
     }
 }
コード例 #3
0
 static Clock()
 {
     Default = new ClockImpl();
 }