Package org.apache.uima.util
Interface UimaTimer
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- JavaTimer
Interface for a timer, used to collect performance statistics for UIMA components. A default
 Timer implementation can be obtained by calling 
UIMAFramework.newTimer().
 A Timer implementation can also be specified in a
 CollectionProcessingEngine descriptor.- 
Method SummaryModifier and TypeMethodDescriptionlongGets the time between the last call to stopIt() and the last call to startIt().intGets the timer resolution in milliseconds.longGets the current time in microseconds.longGets the current time in milliseconds.longGets the current time in seconds.longstartIt()Starts the timer.longstopIt()Stops the timer.
- 
Method Details- 
startItlong startIt()Starts the timer.- Returns:
- the current time in milliseconds
 
- 
stopItlong stopIt()Stops the timer.- Returns:
- the current time in milliseconds
 
- 
getDurationlong getDuration()Gets the time between the last call to stopIt() and the last call to startIt().- Returns:
- the duration in milliseconds
 
- 
getTimeInSecslong getTimeInSecs()Gets the current time in seconds.- Returns:
- the current time in seconds
 
- 
getTimeInMillislong getTimeInMillis()Gets the current time in milliseconds.- Returns:
- the current time in milliseconds
 
- 
getTimeInMicroslong getTimeInMicros()Gets the current time in microseconds.- Returns:
- the current time in microseconds
 
- 
getResolutionint getResolution()Gets the timer resolution in milliseconds.- Returns:
- the timer resolution in milliseconds
 
 
-