I'd like a way to measure C++ code as accurately as possible. I did see boost has a high resolution clock but the boost documentation says it's an expensive clock in terms of performance- kinda defeating the purpose:
http://www.boost.org/doc/libs/1_47_0/doc/html/chrono/users_guide.html
What other ways are there? Is there any way to measure in CPU cycles??