Java TimeUnit Usage sleep(int millis)

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

Description

sleep

License

Apache License

Declaration

public static void sleep(int millis) 

Method Source Code

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

import java.util.concurrent.TimeUnit;

public class Main {
    public static void sleep(int millis) {
        try {//from w  ww.  ja  v  a2 s . c  o m
            TimeUnit.MILLISECONDS.sleep(millis);
        } catch (InterruptedException e) {
            // ignore
        }
    }
}

Related

  1. secondsToHMS(long seconds)
  2. secondsToMillis(int seconds)
  3. secondsToYearsDaysHoursMinutesSeconds(double seconds)
  4. selectDurationUnitForDisplay(long durationInNanos)
  5. sleep()
  6. sleep(long durationMillis)
  7. sleep(long millis)
  8. sleep(long milliseconds)
  9. sleepForSeconds(int seconds)