use usleep for <1s sleeps