Beispiel #1
0
 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);
 }
Beispiel #2
0
 public SimElement(DigitSim doc)
 {
     this.doc = doc;
 }