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