Java Sleep for Second waitForSeconds(int timeoutInSeconds)

Here you can find the source of waitForSeconds(int timeoutInSeconds)

Description

wait For Seconds

License

Apache License

Declaration

public static void waitForSeconds(int timeoutInSeconds) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static void waitForSeconds(int timeoutInSeconds) {
        try {//from   www.ja  v  a 2 s .com
            Thread.sleep(timeoutInSeconds * 1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. sleepSeconds(long seconds)
  2. sleepSeconds(long seconds)
  3. sleepThreadForOneToSuppliedSecond(Thread t, int seconds)
  4. trySleepSeconds(int seconds)
  5. waitForASecond()
  6. waitSeconds(final long waitTimeInSeconds)
  7. waitSeconds(int seconds)
  8. waitXSeconds(int s)
  9. walltimeFromSeconds(long walltimeSecs)