Example #1
0
        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...");
        }
Example #2
0
 private void Print(StartTimer st, Timer e)
 {
     Console.WriteLine("{0}",e.Time.Second);
 }
Example #3
0
 public void Subscribe(StartTimer st)
 {
     st.Tick += new StartTimer.TimerDelegate(Print);
 }