方法一:
#include <thread>
std::this_thread::sleep_for(std::chrono::milliseconds(1));//单位是毫秒
方法二:
usleep(100*1000)//单位是微妙
方法一:
#include <thread>
std::this_thread::sleep_for(std::chrono::milliseconds(1));//单位是毫秒
方法二:
usleep(100*1000)//单位是微妙