|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object learner.StopWatch
public class StopWatch
A utility lass mimicking a stopwatch. Used to measure the time it takes for the Learner to infer the target language.
Field Summary | |
---|---|
boolean |
isRunning
Is the stop watch currently running? |
Constructor Summary | |
---|---|
StopWatch()
Constructs a stopwatch that is in the stopped state and has no time accumulated. |
Method Summary | |
---|---|
long |
getElapsedTime()
Returns the total elapsed time. |
void |
reset()
Stops the watch and resets the elapsed time to 0. |
void |
start()
Starts the stopwatch. |
void |
stop()
Stops the stopwatch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isRunning
Constructor Detail |
---|
public StopWatch()
Method Detail |
---|
public void start()
public void stop()
public long getElapsedTime()
public void reset()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |