C++ cli 如何在CLR项目中使用睡眠?

C++ cli 如何在CLR项目中使用睡眠?,c++-cli,clr,C++ Cli,Clr,我如何在CLR项目中替换以下内容 #include <thread> std::this_thread::sleep_for(std::chrono::milliseconds(60*100)); #包括 std::this_线程::sleep_for(std::chrono::毫秒(60*100)); 或者,在代码中保留度量单位,并注意到问题实际上使用秒(但方式怪异),System::Threading::Thread::Sleep(TimeSpan::FromSeconds(

我如何在CLR项目中替换以下内容

#include <thread>

std::this_thread::sleep_for(std::chrono::milliseconds(60*100));
#包括
std::this_线程::sleep_for(std::chrono::毫秒(60*100));

或者,在代码中保留度量单位,并注意到问题实际上使用秒(但方式怪异),
System::Threading::Thread::Sleep(TimeSpan::FromSeconds(6))
System::Threading::Thread::Sleep(n);