Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <chrono>
- auto start = std::chrono::high_resolution_clock::now();
- // Code to time
- auto finish = std::chrono::high_resolution_clock::now();
- double duration = std::chrono::duration_cast<std::chrono::milliseconds>(finish - start).count();
Add Comment
Please, Sign In to add comment