public class PeriodicChecker
extends java.lang.Object
Constructor and Description |
---|
PeriodicChecker(double seconds) |
PeriodicChecker(double seconds,
boolean alwaysCheck) |
Modifier and Type | Method and Description |
---|---|
long |
elapsedTime() |
double |
getInterval() |
boolean |
isTime()
Checks if the time specified in the constructor has elapsed, resets clock if it has and returns true
|
void |
reset()
Set the last time to the current time.
|
public PeriodicChecker(double seconds)
public PeriodicChecker(double seconds, boolean alwaysCheck)
public double getInterval()
public long elapsedTime()
public void reset()
public boolean isTime()