Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct TimerCheck {
- std::chrono::high_resolution_clock::time_point start;
- TimerCheck():
- start(std::chrono::high_resolution_clock::now())
- {};
- ~TimerCheck(){
- auto end = std::chrono::high_resolution_clock::now();
- auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count();
- cout << diff << endl;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement