public static interface Timer.Interface
Modifier and Type | Method and Description |
---|---|
double |
get()
Get the current time from the timer.
|
boolean |
hasPeriodPassed(double period)
Check if the period specified has passed and if it has, advance the start time by that
period.
|
void |
reset()
Reset the timer by setting the time to 0.
|
void |
start()
Start the timer running.
|
void |
stop()
Stop the timer.
|
double get()
void reset()
void start()
void stop()
boolean hasPeriodPassed(double period)
period
- The period to check for (in seconds).