I'm attempting to get the Sleep() function working on a ... Are you using C++11? If you are you can use:
stackoverflow.com