5,337
edits
(→Usage) |
|||
Line 261: | Line 261: | ||
====std::find==== | ====std::find==== | ||
[https://en.cppreference.com/w/cpp/algorithm/find Reference]<br> | [https://en.cppreference.com/w/cpp/algorithm/find Reference]<br> | ||
===Chrono=== | |||
<code>#include <chrono></code> | |||
Lots of useful time stuff. Good for timing your code. | |||
<syntaxhighlight lang="cpp"> | |||
auto start = std::chrono::high_resolution_clock::now(); | |||
// do something | |||
auto end = std::chrono::high_resolution_clock::now(); | |||
std::cout << "Time elapsed: " << std::duration<std::milli>(end - start) | |||
<< " ms" << std::endl; | |||
</syntaxhighlight> | |||
==STL== | ==STL== |