performance - C++ cross-platform equivalent of Windows' QueryPerformanceCounter() -


to measure execution time of portion of c++ code on windows, tend use queryperformancecounter() high-resolution timer. example of can found in this vcblog post on stl performance.

with aim of writing cross platform c++ code, functions/classes use same purpose?

assuming modern compiler, you're looking std::chrono::high_resolution_clock


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -