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
Post a Comment