Month: May 2019

Stopwatch ticks are different from DateTime.Ticks

Stopwatch ticks are different from DateTime.Ticks

In C#/.NET the System.Diagnostic.Stopwatch class can be used for more precise timing than when using System.DateTime. Until recently, despite many years of using .NET, I hadn't used Stopwatch; DateTime was precise enough for timing web applications or timing over thousands of iterations. I didn't actually need to use it now, but I decided to give … Continue reading Stopwatch ticks are different from DateTime.Ticks