Conditionally usleep or Sleep.