Java Sleep sleep(double secs)

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

Description

sleep

License

Open Source License

Declaration

public static void sleep(double secs) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void sleep(double secs) {
        try {/*from  w  w w  .j  a v  a  2 s  . c  o  m*/
            Thread.sleep((long) (1000 * secs)); //1000 milliseconds is one second.
        } catch (InterruptedException ex) {
            System.out.print("something is wrong exception 1");
            Thread.currentThread().interrupt();
        }
    }
}

Related

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