Java tutorial
//package com.java2s; import java.util.concurrent.TimeUnit; public class Main { public static void sleep(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { } } public static void sleep(long timeout, TimeUnit unit) { sleep(unit.toMillis(timeout)); } }