Q:

Best way to measure the speed of an operation in Visual C++

I'm using MFC in Visual Studios. I wondered what the best way to measure the speed/efficiency of an operation (eg Function A vs Function B) working in this specific IDE. Can this be done with breakpoints?

A:

No, use QueryPerformanceCounter (docs) for accurate measurements of speed.  From comments from @MadKeithV, this seems to not be a good solution, as CPU speed scaling (reducing CPU speed according to current load) may change CPU tick length.
Using a good profiler is a better idea, or just use clock_t to measure. 

