static void Main() { TimerDelegate testMethod = new TimerDelegate(TestMethod); Timer timerTest = new Timer(testMethod, 4000); timerTest.Start(); timerTest.End(); }
static void Main() { sw.Start(); Timer timer = new Timer(3, 7); timer.Methods += TestMethodOne; timer.Methods += TestMethodTwo; timer.Execute(); }