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