public class JavaTimer extends java.lang.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()
UimaTimer
public long stopIt()
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
Copyright © 2012. All Rights Reserved.