|
||||||||||
| 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 UimaTimerpublic long stopIt()
UimaTimer
stopIt in interface UimaTimerpublic int getResolution()
UimaTimer
getResolution in interface UimaTimerpublic long getDuration()
UimaTimer
getDuration in interface UimaTimerpublic long getTimeInSecs()
UimaTimer
getTimeInSecs in interface UimaTimerpublic long getTimeInMillis()
UimaTimer
getTimeInMillis in interface UimaTimerpublic long getTimeInMicros()
UimaTimer
getTimeInMicros in interface UimaTimer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||