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:

Published 05 December 06 09:50 by J.D. Meier
Filed under:

Comments

# DanielMoth said on December 5, 2006 2:45 PM:

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

# Swati said on February 23, 2007 5:02 AM:

Good infomation on Performance  counters , Thanks

# S Mathews said on March 5, 2007 4:38 PM:

Thanks. That was was very useful.

# afuvfo said on May 23, 2007 3:13 AM:

Hi! I used information from that site its great.

Bye.

# gahodobefoda said on June 7, 2007 7:17 PM:

It was one of those perfect English autumnal days which occur more frequently in memory than in life

New Comments to this post are disabled

Search

This Blog

Syndication

Page view tracker