less than 1 minute read

More developer friendly Threa Sleep

Besides calling Thread.sleep(30000) indicate sleep 30 seconds, but is it too confusing to count how many zeros there? Alternatively you can use TimeUnit To increase readability, I believe you’ll gree following one is easier to understand for non obvious durations :

TimeUnit.SECONDS.sleep(30); // sleep 30 seconds

–End–

Updated: