Implement usleep using real time clock.