public class Timer
extends java.lang.Object
Constructor and Description |
---|
Timer()
Constructs a timer.
|
Modifier and Type | Method and 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.
|
java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.