Share via


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:

Comments

  • Anonymous
    December 05, 2006
    FYI, anyone looking for it on the .NET Compact Framework will have to write their own or use the one on my blog.

  • Anonymous
    February 22, 2007
    Good infomation on Performance  counters , Thanks

  • Anonymous
    March 05, 2007
    Thanks. That was was very useful.

  • Anonymous
    May 22, 2007
    Hi! I used information from that site its great. Bye.

  • Anonymous
    June 07, 2007
    It was one of those perfect English autumnal days which occur more frequently in memory than in life