The Stopwatch Class in .NET
Do you ever find yourself using DateTime to time a section of code? Do you have code like the following?
DateTime start = DateTime.Now;
// Perform a long process
Thread.Sleep( 1968 );
DateTime end = DateTime.Now;
TimeSpan duration = end.Subtract( start );
Console.WriteLine( “This process took {0} ms”,
[...]