Java – alternative to thread.sleep

Try a ScheduledThreadPoolExecutor. It’s supposed to give more reliable timing results.

Leave a Comment