C++ Language/Std/CRuntime/Time/TimespanAsCpuClockticks

The C-Runtime keeps track of the amount of time elapsed since the library started running within your program. Query that value by calling std::clock().

Additional information about the clock() function (includes interactive examples)