One 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
|