Java Milliseconds trySleepMillis(int millis)

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

Description

try Sleep Millis

License

Open Source License

Declaration

public static boolean trySleepMillis(int millis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean trySleepMillis(int millis) {
        try {//from w  w  w  .  j a  v  a 2 s .c  om
            Thread.sleep(millis);
            return true;
        } catch (Exception ex) {
        }
        return false;
    }
}

Related

  1. toMillis(String ts)
  2. toSpacelessDateString(long millisSinceEpoch)
  3. ToSting(Long milliSecond)
  4. toTime(long milli)
  5. truncateMillisecond(Date date)
  6. unixToDosTime(long timeMillis)
  7. waitMillis(long millis)
  8. waitMillis(long time)
  9. waitMilliSeconds(final long waitTimeInMilliseconds)