|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tango.server.Chronometer
public final class Chronometer
Calculate elapsed time
Constructor Summary | |
---|---|
Chronometer()
|
Method Summary | |
---|---|
long |
getElapsedTime()
|
boolean |
isOver()
Check if the started duration is over |
void |
start()
Start the chronometer with infinite duration |
void |
start(long duration)
Start the chronometer |
void |
stop()
stop the chronometer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Chronometer()
Method Detail |
---|
public void start(long duration)
duration
- the duration in millisecondspublic void start()
public long getElapsedTime()
public void stop()
public boolean isOver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |