Java Sleep sleep(double seconds)

Here you can find the source of sleep(double seconds)

Description

sleep.

License

Open Source License

Declaration

public static void sleep(double seconds) 

Method Source Code

//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) {

        }
    }
}

Related

  1. sleep()
  2. sleep()
  3. sleep()
  4. sleep()
  5. sleep(double numSeconds)
  6. sleep(double secs)
  7. sleep(final int millis)
  8. sleep(final int ms)
  9. sleep(final int timeMs)