//get time #include <iostream> #include <ctime> using namespace std; int main(){ clock_t start = clock(); //This is your code clock_t ends = clock(); cout << "Running Time : " << (double)(ends - start)/ CLOCKS_PER_SEC << endl; }