Java Sleep for Second sleepSeconds(long seconds)

Here you can find the source of sleepSeconds(long seconds)

Description

sleep Seconds

License

Open Source License

Declaration

public static void sleepSeconds(long seconds) 

Method Source Code

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

public class Main {
    public static final long ONE_SECOND = 1000l;

    public static void sleepSeconds(long seconds) {
        sleepMillis(ONE_SECOND * seconds);
    }// w  w w. j  ava 2  s  . c  o  m

    public static void sleepMillis(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            // ignore
        }
    }
}

Related

  1. pauseSeconds(long pauseSeconds)
  2. sleepForSeconds(long seconds)
  3. sleepSecond(double second)
  4. sleepSeconds(double secs)
  5. sleepSeconds(long seconds)
  6. sleepThreadForOneToSuppliedSecond(Thread t, int seconds)
  7. trySleepSeconds(int seconds)
  8. waitForASecond()
  9. waitForSeconds(int timeoutInSeconds)