Jump to content

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

From Wikibooks, open books for an open world

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)