C++11线程睡眠的方式

C++11线程睡眠的方式

std::this_thread::sleep_for(std::chrono::seconds(3)); //休眠三秒
std::this_thread::sleep_for(std::chrono:: milliseconds (100)); //休眠100毫秒
原文地址:https://www.cnblogs.com/huanyinglvtuan/p/14722857.html