KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > concurrent > TimeUnit

java.util.concurrent
Enum TimeUnit

java.lang.Object
  extended by java.lang.Enum<TimeUnit>
      extended by java.util.concurrent.TimeUnit
All Implemented Interfaces:
Serializable, Comparable<TimeUnit>
See Also:
Top Examples, lock

public long convert(long duration,
                    TimeUnit unit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final TimeUnit MICROSECONDS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final TimeUnit MILLISECONDS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final TimeUnit NANOSECONDS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final TimeUnit SECONDS
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void sleep(long timeout)
           throws InterruptedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void timedJoin(Thread thread,
                      long timeout)
               throws InterruptedException
See Also:
Thread.join(long, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void timedWait(Object obj,
                      long timeout)
               throws InterruptedException
See Also:
Object.wait(long, int), BlockingQueue.poll
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long toMicros(long duration)
See Also:
convert(long, java.util.concurrent.TimeUnit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long toMillis(long duration)
See Also:
convert(long, java.util.concurrent.TimeUnit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long toNanos(long duration)
See Also:
convert(long, java.util.concurrent.TimeUnit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long toSeconds(long duration)
See Also:
convert(long, java.util.concurrent.TimeUnit)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static TimeUnit valueOf(String name)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final TimeUnit[] values()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags