public class JavaTimer extends Object implements UimaTimer
UimaTimer using System.currentTimeMillis().| Constructor and Description |
|---|
JavaTimer() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public long startIt()
UimaTimerpublic long stopIt()
UimaTimerpublic int getResolution()
UimaTimergetResolution in interface UimaTimerpublic long getDuration()
UimaTimergetDuration in interface UimaTimerpublic long getTimeInSecs()
UimaTimergetTimeInSecs in interface UimaTimerpublic long getTimeInMillis()
UimaTimergetTimeInMillis in interface UimaTimerpublic long getTimeInMicros()
UimaTimergetTimeInMicros in interface UimaTimerCopyright © 2018. All rights reserved.