I'm trying to get a thread to check a file for updates, then sleep for half a second, then check again, and so on, until the loop gets a flag telling it to stop. The program compiles, but when it's running and it hits the Sleep call ( Sleep ( 500 ); ), I get this error in my console window:
'sleep' is not recognized as an internal or external command, operable program, or batch file
I have another call to Sleep earlier on, before the program splits to 2 threads, and it works just fine. They're called exactly the same way, so I'm assuming it has something to do with where it's being called from. The error message doesn't mean a whole lot to me, so I was hoping someone here might know what's going on.