Calculate time in C++

PHOTO EMBED

Sun Apr 11 2021 14:03:26 GMT+0000 (Coordinated Universal Time)

Saved by @nhatphan108

#include <chrono>
using namespace std::chrono;
auto start = high_resolution_clock::now();
 auto stop = high_resolution_clock::now();
auto duration = duration_cast<microseconds>(stop - start);
std::cout << duration.count() << std::endl;
content_copyCOPY