|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.util.ThreadUtil
public final class ThreadUtil
The Class ThreadUtil.
| Method Summary | |
|---|---|
static long |
getTimerResolutionInMillis()
Gets the timer resolution in millis. |
static void |
sleep()
Sleep. |
static void |
sleep(int time,
TimeUnit unit)
Using now also the constants MINUTES, HOURS and DAYS which are new with Java 6. |
static void |
sleep(long millis)
Sleep. |
static void |
sleep(long millis,
int nanos)
Sleep. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void sleep()
public static void sleep(long millis)
millis - the millis
public static void sleep(long millis,
int nanos)
millis - the millisnanos - the nanos
public static void sleep(int time,
TimeUnit unit)
time - e.g. 5unit - e.c. SECONDSpublic static long getTimerResolutionInMillis()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||