Guest User

Untitled

a guest
Feb 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <chrono>
  2.  
  3. auto start = std::chrono::high_resolution_clock::now();
  4. // Code to time
  5. auto finish = std::chrono::high_resolution_clock::now();
  6. double duration = std::chrono::duration_cast<std::chrono::milliseconds>(finish - start).count();
Add Comment
Please, Sign In to add comment