没有找到c++, MingW, ctime, nanosleep()
C++, MingW, ctime, nanosleep() not found?
我只是想使用nanosleep(),但它似乎不在mingwctime:
#include <ctime> //this is what I need, isn't it?
如何在MingW上使用nanosleep ?谢谢。
遗憾的是,MinGW不提供nanosleep()。
MinGW只提供这个列表中的函数,这些函数在Microsoft API中。
在标准c++库中没有这样的函数(nanosleep
)。它是POSIX专用函数,声明在<time.h>
中,而不是在<ctime>
中。你在窗户下面。Windows不是POSIX。如果你想使用POSIX库,你需要安装Cygwin.
相关文章:
- 如何使用 CTIME/Chrono Libarey 将开始时间与系统时钟进行比较
- 如何使用Chrono或ctime libaray输入设置的开始和结束时间
- 如何比较两个tm(来自ctime)变量
- 使用 ctime 保存新时间点会覆盖旧字符串?
- C++ ctime() 迄今为止格式化的字符串?
- 生成日期向量使用<ctime>
- ctime 包含 boost::文件系统时出错
- 为什么常量CLOCKS_PER_SEC不需要用 std:: 命名,但 <ctime> clock() 和 clock_t 可以呢?
- 将文本日期和时间转换为 ATL::CTime
- 是什么让我的C++ ctime 相关函数表现得很奇怪
- The mess that is ctime, time.h, sys/time.h
- C GCC-无法包括CTIME,CSTRING或CSTDLIB
- 创建 CTime @ 2am 不会返回正确的值(Windows CE,C++)
- 的<ctime>替代品
- 与PHP Zend Libs和C Libs(CTime)冲突,以建立PHP的扩展
- C++ctime.h将无法正确计算时间
- C++ <ctime> 打印错误的日期
- "@"在基于 ctime 的函数中打印出来
- 如何正确使用 ctime() 打印不同的时间戳
- 没有找到c++, MingW, ctime, nanosleep()