|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.internal.util.JavaTimer
public class JavaTimer
Simple implementation of UimaTimer
using System.currentTimeMillis()
.
Constructor Summary | |
---|---|
JavaTimer()
|
Method Summary | |
---|---|
long |
getDuration()
Gets the time between the last call to stopIt() and the last call to startIt(). |
int |
getResolution()
Gets the timer resolution in milliseconds. |
long |
getTimeInMicros()
Gets the current time in microseconds. |
long |
getTimeInMillis()
Gets the current time in milliseconds. |
long |
getTimeInSecs()
Gets the current time in seconds. |
long |
startIt()
Starts the timer. |
long |
stopIt()
Stops the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaTimer()
Method Detail |
---|
public long startIt()
UimaTimer
startIt
in interface UimaTimer
public long stopIt()
UimaTimer
stopIt
in interface UimaTimer
public int getResolution()
UimaTimer
getResolution
in interface UimaTimer
public long getDuration()
UimaTimer
getDuration
in interface UimaTimer
public long getTimeInSecs()
UimaTimer
getTimeInSecs
in interface UimaTimer
public long getTimeInMillis()
UimaTimer
getTimeInMillis
in interface UimaTimer
public long getTimeInMicros()
UimaTimer
getTimeInMicros
in interface UimaTimer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |