| Modifier and Type | Field and Description |
|---|---|
| private static long | |
| private long | |
| private boolean | |
| private static final int | |
| private static int | |
| private static long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static void | |
| public String |
| currentTime | back to summary |
|---|---|
| private static long currentTime | |
| lastTime | back to summary |
|---|---|
| private long lastTime | |
| paused | back to summary |
|---|---|
| private boolean paused | |
| QUERY_INTERVAL | back to summary |
|---|---|
| private static final int QUERY_INTERVAL | |
| queryCount | back to summary |
|---|---|
| private static int queryCount | |
| resolution | back to summary |
|---|---|
| private static long resolution | |
| startTime | back to summary |
|---|---|
| private long startTime | |
| Timer | back to summary |
|---|---|
| public Timer() Constructs a timer. The timer will be reset to 0.0 and resumed immediately. | |
| getTime | back to summary |
|---|---|
public float getTime()
| |
| isPaused | back to summary |
|---|---|
public boolean isPaused()
| |
| pause | back to summary |
|---|---|
| public void pause() Pause the timer. Whilst paused the time will not change for this timer when tick() is called.
| |
| reset | back to summary |
|---|---|
| public void reset() Reset the timer. Equivalent to set(0.0f);
| |
| resume | back to summary |
|---|---|
| public void resume() Resume the timer.
| |
| set | back to summary |
|---|---|
| public void set(float newTime) Set the time of this timer
| |
| tick | back to summary |
|---|---|
| public static void tick() Get the next time update from the system's hires timer. This method should be called once per main loop iteration; all timers are updated simultaneously from it. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Debug output.
| |