|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.internal.util.Timer
public final class Timer
Simple timer class.
Constructor Summary | |
---|---|
Timer()
Create a new timer. |
Method Summary | |
---|---|
long |
getTime()
Get the currently accumulated time. |
TimeSpan |
getTimeSpan()
Get the accumulated time as a time span object. |
boolean |
reset()
Reset the timer to 0. |
boolean |
start()
(Re)start the timer. |
boolean |
stop()
Stop the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
start()
explicitly.
Method Detail |
---|
public boolean start()
false
iff the timer is already running.public boolean stop()
false
iff the timer is not running.public boolean reset()
false
iff the timer is currently running.public long getTime()
public TimeSpan getTimeSpan()
getTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |