I just wanted to use nanosleep() but it seems not to be available in MingW ctime:
#include <ctime> //this is what I need, isn't it?
How can I use nanosleep on MingW? Thanks.
I just wanted to use nanosleep() but it seems not to be available in MingW ctime:
#include <ctime> //this is what I need, isn't it?
How can I use nanosleep on MingW? Thanks.
Unfortunately, MinGW doesn't provide nanosleep().
MinGW only provides functions on this list, which are in the Microsoft API.
In standard C++ library there is no such function (nanosleep
).
It is POSIX specific function declared in <time.h>
not in <ctime>
. You are under windows. Windows isn't POSIX.
If you want to use POSIX library you need to install Cygwin.