Java Sleep sleepSilently(int millis)

Here you can find the source of sleepSilently(int millis)

Description

sleep Silently

License

Open Source License

Declaration

public static void sleepSilently(int millis) 

Method Source Code

//package com.java2s;
/*//  w w w  .java2s .  c o  m
 * Copyright (C) 2007 Free Software Foundation, Inc.
 *
 * Licensed under the GNU General Public License, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.gnu.org/licenses/gpl.html
 *
 * Software distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

public class Main {
    public static void sleepSilently(int millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
        }
    }
}

Related

  1. sleepRandMs(int ms)
  2. sleepRandom(long floor, long ceiling)
  3. sleepRandom(long timeout)
  4. sleepSafely(final long millis)
  5. sleepSilently(int millis)
  6. sleepThread(long millSecd)
  7. sleepThread(long sleeptime)
  8. sleepTight(final long millis)
  9. sleepUninterruptedly(long millis)