Here you can find the source of sleep(double seconds)
public static void sleep(double seconds)
//package com.java2s; public class Main { /**************************************************************************** * sleep.//w w w . ja v a2 s.com ****************************************************************************/ public static void sleep(double seconds) { sleep(Math.round(1000 * seconds)); } public static void sleep(int ms) { sleep((long) ms); } public static void sleep(long ms) { try { Thread.sleep(ms); } catch (Exception e) { } } }