Could it be done by keeping a counter to see how many iterations an algorithm goes through, or does the time duration need to be recorded?
Might I suggest using ANTS profiler. It will provide you this kind of detail while you run your app with "experimental" data.