public class StopWatch
extends java.lang.Object
Constructor and Description |
---|
StopWatch()
Create a stop watch and initialise it to the current time.
|
Modifier and Type | Method and Description |
---|---|
double |
getElapsedTime()
Get the elapsed time since this method was called.
|
double |
getRunTime()
Get the time since the stop watch was created or last reset.
|
void |
reset()
Initialise the stop-watch to the current time.
|
public StopWatch()
public void reset()
public double getRunTime()
public double getElapsedTime()
Processing library AI_for_2D_Games by Peter Lager. (C) 2013