#include <chrono> using namespace std::chrono; // After function call auto stop = high_resolution_clock::now();