static void Main(string[] args) { StartTimer t = new StartTimer(); Run l = new Run(); l.Subscribe(t); t.Start(); Console.WriteLine("If the counting is below this message that means counting does not break the process..."); }
private void Print(StartTimer st, Timer e) { Console.WriteLine("{0}",e.Time.Second); }
public void Subscribe(StartTimer st) { st.Tick += new StartTimer.TimerDelegate(Print); }