Advertisement
paulogp

Sleep

Aug 8th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. // apple xcode
  2. // paulogp
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main (int argc, const char * argv[])
  8. {
  9.     for (int i = 0; i < 10; i++)
  10.     {
  11.         cout << i << endl;
  12.         sleep(1); // 1s
  13.     }
  14.    
  15.     cout << "done" << endl;
  16.    
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement