参考:https://stackoverflow.com/questions/4184468/sleep-for-milliseconds
标准库:
#include <chrono> #include <thread> std::this_thread::sleep_for(std::chrono::milliseconds(x));
Linux下:
#include <unistd.h> unsigned int microseconds; ... usleep(microseconds);
文章的脚注信息由WordPress的wp-posturl插件自动生成