Java Sleep for Second pauseSeconds(long pauseSeconds)

Here you can find the source of pauseSeconds(long pauseSeconds)

Description

pause Seconds

License

LGPL

Declaration

public static void pauseSeconds(long pauseSeconds) 

Method Source Code

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

public class Main {
    public static void pauseSeconds(long pauseSeconds) {

        System.out.format("INFO:Utils::pauseSeconds: %d ...", pauseSeconds);
        try {//from w  ww .ja  v a  2s .  c o m
            Thread.sleep(pauseSeconds * 1000);
        } catch (InterruptedException e) {
        }
        System.out.format("consumed\n");

    }
}

Related

  1. sleepForSeconds(long seconds)
  2. sleepSecond(double second)
  3. sleepSeconds(double secs)
  4. sleepSeconds(long seconds)