static void Main() { Metronome m = new Metronome(); Listener l = new Listener(); l.Subscribe(m); m.Start(); }
static void Main() { Metronome m = new Metronome(); Listener l = new Listener(); l.Subscribe(m); m.Start(); for (int i = 0; i < 300; i++) { Console.WriteLine("Executing Line " + i); System.Threading.Thread.Sleep(3000); } }