using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
System.Threading.Timer timer;
public static void Main()
Program program = new Program();
program.StartTimer(100, 20);
protected void PostTestMenu()
Console.WriteLine("############### Was nun ##############");
Console.WriteLine("Test wiederholen 1");
Console.WriteLine("Hauptmenü 2");
Console.WriteLine("Wrong Choice:");
protected void StartTimer(int milliseconds, long iterations)
startTimeSpan = TimeSpan.Zero;
periodTimeSpan = TimeSpan.FromMilliseconds(milliseconds);
timer = new System.Threading.Timer((e) =>
Console.WriteLine("Finished");
, null, startTimeSpan, periodTimeSpan);