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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -