Java Sleep for Second waitXSeconds(int s)

Here you can find the source of waitXSeconds(int s)

Description

wait X Seconds

License

Apache License

Declaration

public static void waitXSeconds(int s) 

Method Source Code

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

public class Main {
    public static void waitXSeconds(int s) {
        try {//from   www . j av  a 2s .  c  o m
            Thread.sleep(s * 1000);
        } catch (Exception e) {
        }
    }
}

Related

  1. trySleepSeconds(int seconds)
  2. waitForASecond()
  3. waitForSeconds(int timeoutInSeconds)
  4. waitSeconds(final long waitTimeInSeconds)
  5. waitSeconds(int seconds)
  6. walltimeFromSeconds(long walltimeSecs)