Ejemplo n.º 1
0
        public AdvTimeStamp AddNanoseconds(uint nanoseconds)
        {
            var rv = new AdvTimeStamp();

            rv.NanosecondsAfterAdvZeroEpoch  = NanosecondsAfterAdvZeroEpoch + nanoseconds;
            rv.MillisecondsAfterAdvZeroEpoch = (ulong)(NanosecondsAfterAdvZeroEpoch + (nanoseconds / 1000000.0));
            return(rv);
        }
Ejemplo n.º 2
0
 public static AdvTimeStamp FromDateTime(int year, int month, int day, int hours, int minutes, int seconds, int milliseconds)
 {
     return(AdvTimeStamp.FromWindowsTicks((ulong)new DateTime(year, month, day, hours, minutes, seconds, milliseconds).Ticks));
 }
Ejemplo n.º 3
0
 public static AdvTimeStamp FromDateTime(DateTime dateTime)
 {
     return(AdvTimeStamp.FromWindowsTicks((ulong)dateTime.Ticks));
 }