#include<chrono>#include<thread> std::this_thread::sleep_for(std::chrono::milliseconds(1000)); 转载于:https://www.cnblogs.com/alanlvee/p/5152936.html