Here you can find the source of sleep(int milliseconds)
public static void sleep(int milliseconds)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { private static Logger log = LoggerFactory.getLogger("TEST"); public static void sleep(int milliseconds) { try {/* w w w . j a va 2 s. c o m*/ Thread.sleep(milliseconds); log.trace("Sleeping"); } catch (InterruptedException e) { e.printStackTrace(); } } private void trace(String format, Object... arguments) { log.trace(format, arguments); } }