#include <iostream>
#include <thread>
#include <chrono>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
for (int i = 0; i < 100; i++){
cout << i << " ";
this_thread::sleep_for(chrono::seconds(5));//sleep 5秒
this_thread::sleep_for(chrono::hours(1));//sleep 1小时
this_thread::sleep_for(chrono::minutes(1));//sleep 1分钟
this_thread::sleep_for(chrono::milliseconds(1));//sleep 1毫秒
}
system("pause");
return 0;
}