fixig sleep on linux. using usleep in microseconds

sleep on linux is expressed in seconds, so calling sleep(500) require the thread to pause for too much time. Replaced with usleep - so it should be clearer it is in microseconds...