bhupixb

Timer short

Jun 7th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. using namespace chrono;
  2. auto Y = high_resolution_clock::now();
  3. cout << setw(10) << "Estimated time = ";
  4. cout << duration_cast<microseconds>(Y-X).count() / float(1e6) << "(uS)";
Add Comment
Please, Sign In to add comment