没找到C ++,MingW,ctime,nanosleep()?

我只想使用nanosleep()但似乎在MingW ctime中不可用:
#include <ctime> //this is what I need, isn't it?
我如何在MingW上使用nanosleep?谢谢。     
已邀请:
不幸的是,MinGW不提供nanosleep()。 MinGW仅提供此列表中的功能,这些功能位于Microsoft API中。     
在标准C ++库中没有这样的功能(
nanosleep
)。 它是在
<time.h>
中声明的POSIX特定函数而不是在
<ctime>
中。你在窗户下。 Windows不是POSIX。 如果要使用POSIX库,则需要安装Cygwin。     

要回复问题请先登录注册