/// <summary> /// Creates new instance of time source. /// </summary> public TimeSourceBase() { virtualTimeSyncLock = new object(); isInSyncPhaseLock = new object(); blockingEvent = new ManualResetEvent(true); delayedActions = new SortedSet <DelayedTask>(); handles = new HandlesCollection(); stopwatch = new Stopwatch(); hostTicksElapsed = new TimeVariantValue(10); virtualTicksElapsed = new TimeVariantValue(10); sync = new PrioritySynchronizer(); Quantum = DefaultQuantum; this.Trace(); }
/// <summary> /// Creates new instance of time source. /// </summary> public TimeSourceBase() { blockingEvent = new ManualResetEvent(true); delayedActions = new SortedSet <DelayedTask>(); handles = new HandlesCollection(); sleeper = new Sleeper(); stopwatch = Stopwatch.StartNew(); recentlyUnblockedSlaves = new HashSet <TimeHandle>(); hostTicksElapsed = new TimeVariantValue(10); virtualTicksElapsed = new TimeVariantValue(10); sync = new PrioritySynchronizer(); Quantum = DefaultQuantum; Performance = 1; this.Trace(); }