c 2b 2b compare time

Solutions on MaxInterview for c 2b 2b compare time by the best coders in the world

showing results for - "c 2b 2b compare time"
Jessica
28 Jun 2017
1#include <chrono> 
2using namespace std::chrono; 
3
4auto start = high_resolution_clock::now(); 
5auto stop = high_resolution_clock::now(); 
6auto duration = duration_cast<microseconds>(stop - start); 
7  
8cout << duration.count() << endl;