public TimeSpan Step(DigitSim doc) { stopwatch.Restart(); //process connections Parallel.ForEach(doc.connections, ProcessConnection); //process elements Parallel.ForEach(doc.elements, ProcessElement); stopwatch.Stop(); return(LastStepDuration = stopwatch.Elapsed); }
public SimElement(DigitSim doc) { this.doc = doc; }