Measure Execution Time in C# with Stopwatch
Time a block of code in C# with Stopwatch or Stopwatch.GetElapsedTime, read the result correctly, and know when to switch to BenchmarkDotNet.
Time a block of code in C# with Stopwatch or Stopwatch.GetElapsedTime, read the result correctly, and know when to switch to BenchmarkDotNet.