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