예제 #1
0
 public void StartingTwice(Stopwatch sw)
 {
     sw.Start();
     sw.Start();
     /* Not started or stopped */
     Console.WriteLine($"Duration: {sw.Duration().ToString()}");
 }
예제 #2
0
 public void HappyPath(Stopwatch sw)
 {
     sw.Start();
     Thread.Sleep(3000);
     sw.Stop();
     Console.WriteLine($"Duration: {sw.Duration().ToString()}");
 }