Answers for "stopwatch c#"

C#
5

stopwatch c#

var timer = new Stopwatch();

  timer.Start();
  // do stuff
  timer.Stop();
}
Posted by: Guest on August-30-2020
2

c# stopwatch

private void timer1_Tick(object sender, EventArgs e)
{
    TimeSpan duration = DateTime.Now - _start;
    label3.Text = duration.ToString(<some format string>);
}
Posted by: Guest on July-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language