Exemple #1
0
 public void timeTick()
 {
     minutes.increment();
     if (minutes.value == 0)
     {
         hours.increment();
     }
     UpdateDisplay();
 }
Exemple #2
0
        public void TimeTick()
        {
            Thread.Sleep(1000);
            seconds.increment();
            if (seconds.GetValue() == 0)
            {
                minutes.increment();
                if (minutes.GetValue() == 0)
                {
                    hours.increment();
                }
            }

            UpdateDisplay();
        }