Advertisement
c00per007

Untitled

Dec 6th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. start = std::chrono::system_clock::now();
  2. newItem.shiftAndSubstract();
  3. end = std::chrono::system_clock::now();
  4. elapsed_seconds = end - start;
  5. end_time = std::chrono::system_clock::to_time_t(end);
  6. std::cout << "finished computation at " << std::ctime(&end_time)
  7. << "elapsed time: " << elapsed_seconds.count() << "s\n";
  8. newItem.myPause();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement