public class MSTimer
extends java.lang.Object
| Constructor and Description |
|---|
MSTimer() |
| Modifier and Type | Method and Description |
|---|---|
long |
getDelta() |
long |
getTime() |
boolean |
hasReached(long delay) |
boolean |
hasReached(long delay,
boolean reset) |
void |
pause()
Pauses the timer.
|
void |
reset()
Resets the timer.
|
void |
resume()
Resumes the timer.
|
void |
setTime(long time) |
public void pause()
public void resume()
public void reset()
public boolean hasReached(long delay)
delay - The delay to check.public boolean hasReached(long delay,
boolean reset)
delay - The delay to check.reset - Whether the timer should be reset after the check.public long getDelta()
public long getTime()
public void setTime(long time)