public void StartSimulation() { while (simulationsDay > 0) { Console.WriteLine(simulatorDate.ToString()); simulatorDate = simulatorDate.AddMinutes(6); TimeHandler.Invoke(); Thread.Sleep(tickPerSecond); simulationsDay--; if (simulatorDate.Hour == 17) { simulatorDate = GetDateTime(); } } }