public class Tools
extends java.lang.Object
Constructor and Description |
---|
Tools() |
Modifier and Type | Method and Description |
---|---|
static void |
delay(int duration)
Suspends execution of the current thread for the given amount of time (unless
the game grid window is disposed).
|
static long |
getTime()
Gets the timer's time.
|
static void |
startTimer()
Starts a timer or restart it by setting its time to zero.
|
public static void startTimer()
public static long getTime()
public static void delay(int duration)
duration
- the duration (in ms)