Beispiel #1
0
 public override IEnumerable <Event> Execute(SimulationEnvironment environment)
 {
     while (true)
     {
         yield return(environment.Timeout(_tick));
     }
 }
Beispiel #2
0
 public override IEnumerable <Event> Execute(SimulationEnvironment environment)
 {
     while (true)
     {
         Console.WriteLine(environment.Now);
         yield return(environment.Timeout(TimeSpan.FromSeconds(1)));
     }
 }