Advertisement
avr39ripe

portablePauseCpp

Feb 9th, 2021
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <chrono>
  3. #include <thread>
  4.  
  5.  
  6. int main()
  7. {
  8.     for (int i{ 0 }; i < 100; ++i)
  9.     {
  10.         std::cout << i << '\n';
  11.         std::this_thread::sleep_for(std::chrono::milliseconds(500));
  12.     }
  13.     return 0;
  14. }
  15. //std::this_thread::sleep_for(std::chrono::milliseconds(1000));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement