static void Main() { AsyncTimer printGreen = new AsyncTimer(PrintCyanBackgroundToConsole, 7, 1500); printGreen.Run(); AsyncTimer printInfo = new AsyncTimer(PrintInfoText, 7, 2000); printInfo.Run(); AsyncTimer beep = new AsyncTimer(MakeSound, 10, 1500); beep.Run(); }
static void Main() { AsyncTimer timer = new AsyncTimer(5000, 1000, Action); timer.Parallel(); }
static void Main(string[] args) { AsyncTimer asyncTimer = new AsyncTimer(PrintDateTimeMilliseconds, 10, 30); asyncTimer.Run(); }