-
[RESOLVED] .NET timing
This is neither C# or VB.NET specific i am just looking for a nice class to time the execution of specific blocks of code. At the moment i am just using the System.Diagnostics.Stopwatch class and C# seems to be performing better by quite a bit :D
Anyway is there maybe a better way? From what i have heard Stopwatch is perfectly fine but just wondering, any ideas are welcome :)
-
Re: .NET timing
Never mind apparently the Stopwatch is a hardware timer and it is as good as you can possibly get :D
-
Re: .NET timing
StopWatch was added in .Net 2.0 so you didn't have to use ugly Win32 api (QueryPerformanceTimer to be more specific) so it's good :thumb:
-
Re: .NET timing
Thanks for the clarification :)