Fix sleep() function error 

Fix sleep() function error .under windows