error 3a 27std 3a 3ahigh resolution clock 27 has not been declared

Solutions on MaxInterview for error 3a 27std 3a 3ahigh resolution clock 27 has not been declared by the best coders in the world

showing results for - "error 3a 27std 3a 3ahigh resolution clock 27 has not been declared"
Miguel Ángel
08 May 2016
1#include <chrono>
2using std::chrono::high_resolution_clock;
3using std::chrono::microseconds;
4using std::chrono::duration_cast;
5
6auto start = high_resolution_clock::now();
7rd(n);
8auto stop = high_resolution_clock::now();
9auto duration = duration_cast<microseconds>(stop-start);
10std::cout << duration.count() << std::endl;