public CS_PreciseTimer(long synchronizePeriodSeconds) { Stopwatch = Stopwatch.StartNew(); this.Stopwatch.Start(); DateTime t = DateTime.UtcNow; _immutable = new DateTimePreciseSafeImmutable(t, t, Stopwatch.ElapsedTicks, Stopwatch.Frequency); _synchronizePeriodSeconds = synchronizePeriodSeconds; _synchronizePeriodStopwatchTicks = synchronizePeriodSeconds * Stopwatch.Frequency; _synchronizePeriodClockTicks = synchronizePeriodSeconds * _clockTickFrequency; }
public CS_PreciseTimer(long synchronizePeriodSeconds) { Stopwatch = Stopwatch.StartNew(); this.Stopwatch.Start(); DateTime t = DateTime.UtcNow; _immutable = new DateTimePreciseSafeImmutable(t, t, Stopwatch.ElapsedTicks, Stopwatch.Frequency); _synchronizePeriodSeconds = synchronizePeriodSeconds; _synchronizePeriodStopwatchTicks = synchronizePeriodSeconds * Stopwatch.Frequency; _synchronizePeriodClockTicks = synchronizePeriodSeconds * _clockTickFrequency; }