#include <chrono> using namespace std::chrono; auto start = high_resolution_clock::now(); // code auto stop = high_resolution_clock::now();