public final class TimerUtil extends Object
| Constructor and Description |
|---|
TimerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void | wait(int waitTime)Pauses the current thread for the specified amount of time. |
static void | waitRandom(int time)Pauses the current thread for a random amount of time up to the specified maximum. |
public static final void wait(int waitTime)
waitTime - the time to wait in millisecondspublic static final void waitRandom(int time)
time - the maximum time to wait in milliseconds