If you want to do resource profiling, Visual Studio can do that out of the box.
For simple benchmarking, specifically for seeing how long certain calls take, I just just the Stopwatch class and ouput the result to a log entry. Assuming you're using C# that is.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments