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

From Wikibooks, open books for an open world
< C++ Language‎ | Std‎ | CRuntime‎ | Time
Jump to navigation Jump to search

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)