title: Thread sleep and precise timing
body: <p>I am making a code where I want definite precision in my timing. I use a robot to make some actions, then I use <code>Thread.sleep(some_time)</code> for <code>some_time</code> to be elapsed between the actions. But I don't get best results because as I search it, <code>sleep</code> is not accurate. What would be the best way to accomplish this? I mean simulate <code>Thread.sleep</code> with other methods.</p>