如何使用C++托管代码将程序暂停几毫秒?我试过Sleep()但当我包含winbase.h文件时它不起作用,我遇到了很多编译错误!for(inti=0;iMakeCurrent();System::Threading::Thread::Sleep(100);theta_rotated+=2.0*3.141592653/(double)Model->size()/10.0;simpleOpenGlControl1->Invalidate();}private:System::VoidsimpleOpenGlControl1_Paint(System::Object^sender,Syste