C++: Difference between revisions
Line 418: | Line 418: | ||
===Chrono=== | ===Chrono=== | ||
<code>#include <chrono></code><br> | <code>#include <chrono></code><br> | ||
I now prefer using <code>absl::Time</code> and <code>absl::Duration</code> over Chrono because they abstract away the underlying type. | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
auto start = std::chrono::high_resolution_clock::now(); | auto start = std::chrono::high_resolution_clock::now(); |