fork download
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6. int t = clock();
  7.  
  8. while (clock() - t < 10000) {
  9. if ((clock()-t)%1000 == 0)
  10. cout << clock()-t << endl;
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 3456KB
stdin
Standard input is empty
stdout
1000
2000
3000
4000
5000
6000
7000
8000
9000