Set start time for Stopwatch program in C#
I want to write a simple stopwatch program, I can make it work with the following code public Form1() { InitializeComponent(); } System.Diagnostics.Stopwatch ss = new System.Diagnostics.Stopwatch { }; private void button1_Click(object sender, EventArgs e) { if (button1.Text == "Start") { button1.Text = "Stop"; ss.Start(); timer1.Enabled = true; } else { button1.Text = "Start"; ss.Stop(); timer1.Enabled = false; } } private void timer1_Tick(object sender, EventArgs e) { int hrs = ss.Elapsed.Hours, mins = ss.Elapsed.Minutes, secs = ss.Elapsed.Seconds; label1.Text = hrs + ":"; if (mins < 10)