What is the proper #include for the function 'sleep()'?
this is what I use for a cross-platform code:
#ifdef _WIN32#include <Windows.h>#else#include <unistd.h>#endifint main(){ pollingDelay = 100 //do stuff //sleep: #ifdef _WIN32 Sleep(pollingDelay); #else usleep(pollingDelay*1000); /* sleep for 100 milliSeconds */ #endif //do stuff again return 0;}