Added mySleep wrapper to linux usleep and win sleep