Сгенерирован код - usle Sleep vs std :: this_thread :: sleep_forC++

Программы на C++. Форум разработчиков
Anonymous
Сгенерирован код - usle Sleep vs std :: this_thread :: sleep_for

Сообщение Anonymous »

Я пытаюсь оценить usle Sleep vs std :: this_thread :: sleep_for и видеть больше инструкций, сгенерированных при использовании std :: this_thread :: sleep_for vs usle.int main(int, char**)
{
std::this_thread::sleep_for(std::chrono::milliseconds{30});
usleep(30000);
return 0;
}
< /code>

Я вижу 20 при использовании std :: this_thread :: sleep_for.>

Подробнее здесь: https://stackoverflow.com/questions/490 ... dsleep-for

Вернуться в «C++»