Example #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            Stopwatch time = new Stopwatch();
            //elapsedTime = DateTime.Now - startTime;
            //lblTime.Text = elapsedTime.ToString(@"hh\:mm\:ss");

            DateTime Toc = Convert.ToDateTime(time.ET());


            string tic = Convert.ToString(Toc - startTime);

            lblTime.Text = tic;
        }