Mark Michaelis' Weblog :
Updated: 9/24/2004; 1:59:14 PM.

 








Subscribe to "Mark Michaelis' Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Subscribe To
Mark's Weblog

 
 

Friday, September 10, 2004

System.Diagnostics.Stopwatch in .NET 2.0
Google Search It

A picture named System.Diagnostics.Stopwatch.jpgOne omission from .NET 1.0 that would have been extremely useful is a Stopwatch that can report accurate time (presumably using the high performance counter APIs).  It is needed especially for doing any type of small scale testing.  Unfortunately, there is no such class in .NET 1.0.  However, 2.0 does have such a class in the System.Diagnostics namespace called Stopwatch.

If you are stuck in the 1.0 world still then Daniel Strigl has defined a class on CodeProject called HiPerfTimer that could easily be converted to look like the Stopwatch class in 2.0. 


10:24:59 AM   []    comment []

© Copyright 2004 Mark Michaelis.



 


September 2004
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Aug   Oct


Recent Posts