Using the Stopwatch Class in C#
The .NET Stopwatch class provides a easy mechanism for measuring code execution time. The stopwatch object uses the highest-resolution timing mechanism which the OS and hardware provides, which is normally less than a microsecond. By way of contrast Environment.TickCount and DateTime.Now have a resolution of approximately 15 microseconds. To use the Stopwatch, simply instantiate a [...]
Read more



12:57 am by csharphelp