public AdvTimeStamp AddNanoseconds(uint nanoseconds) { var rv = new AdvTimeStamp(); rv.NanosecondsAfterAdvZeroEpoch = NanosecondsAfterAdvZeroEpoch + nanoseconds; rv.MillisecondsAfterAdvZeroEpoch = (ulong)(NanosecondsAfterAdvZeroEpoch + (nanoseconds / 1000000.0)); return(rv); }
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)); }
public static AdvTimeStamp FromDateTime(DateTime dateTime) { return(AdvTimeStamp.FromWindowsTicks((ulong)dateTime.Ticks)); }