Timing Managed Code in .NET 2.0

In .NET 1.1, we timed managed code by wrapping QueryPerformanceCounter and QueryPerformanceFrequency.  The following How To shows how:

In .NET 2.0, you can use the Stopwatch Class.  I found the following references useful: