codesnippet

  1. Measuring Elapsed Time in C# Methods

    When determining why some damned thing in my .NET programs is taking so damned long, it is useful to be able to look at the elapsed time for various sections of code. The straightforward way to do this is to create an instance of System.Diagnostics.Stopwatch, start it, do …

    » Read more

© 2003-2017 Kristopher Johnson