<p>How can I count operations in C++? I'd like to analyze code in a better way than just timing it since the time is often rounded to 0 millisec.</p>

If you are timing code, it's worth running it a lot of times in a loop to avoid the effect of the timer resolution. So you might run the thing you're timing 10,000 times and measure the amount of time it takes to run all the iterations. It will probably only take a few seconds to run and you'll get better timing data.