Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static void waitSeconds(int seconds) { waitSeconds((double) seconds); } public static void waitSeconds(double seconds) { waitMillis(Math.round(seconds * 1000)); } public static void waitMillis(long millis) { try { Thread.sleep(millis); } catch (Exception e) { } } }