using System.Collections.Generic;
public static void Main() {
Console.WriteLine("Hello World");
foreach(var result in getTime()) {
Console.WriteLine(result);
System.Threading.Thread.Sleep(1000);
private static IEnumerable<string> getTime(){
for (var x = 0; x < 10; ++x){
yield return DateTime.Now.ToString("HH:mm:ss tt");