Search code examples
c++mingwctime

C++, MingW, ctime, nanosleep() not found?


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.


Solution

  • Unfortunately, MinGW doesn't provide nanosleep().
    MinGW only provides functions on this list, which are in the Microsoft API.