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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -