date DateTime Now Timer timer new Timer timer Interval 10 timer Tick n

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
date = DateTime.Now;
Timer timer = new Timer();
timer.Interval = 10;
timer.Tick += new EventHandler(tickTimer);
if (start.Text == "Stop")
{
timer.Stop();
label2.Text = "STOP";
}
else
{
timer.Start();
label2.Text = "Start";
}