public class Timer extends Object
Constructor | Description |
---|---|
Timer() |
Constructs a timer.
|
Modifier and Type | Method | Description |
---|---|---|
float |
getTime() |
|
boolean |
isPaused() |
|
void |
pause() |
Pause the timer.
|
void |
reset() |
Reset the timer.
|
void |
resume() |
Resume the timer.
|
void |
set(float newTime) |
Set the time of this timer
|
static void |
tick() |
Get the next time update from the system's hires timer.
|
String |
toString() |
Debug output.
|
public Timer()
public float getTime()
public boolean isPaused()
public void pause()
resume()
public void reset()
set(float)
public void resume()
pause()
public void set(float newTime)
newTime
- the new time, in secondspublic static void tick()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.