java.lang.Object
org.apache.jena.atlas.lib.Timer
A Timer of operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongendTimer()Stop timing and return the elapsed time in millisecondslongRead an elapsed timerlongread()Read the timer - either the instantaneous value (if running) or elapsed time (if finished).longRead a running timerstatic longTime an operation.static StringtimeStr(long timeInterval) Helper function to format milliseconds as "%.3f" seconds
-
Constructor Details
-
Timer
public Timer()
-
-
Method Details
-
startTimer
-
endTimer
public long endTimer()Stop timing and return the elapsed time in milliseconds -
read
public long read()Read the timer - either the instantaneous value (if running) or elapsed time (if finished). -
readTimer
public long readTimer()Read a running timer -
getTimeInterval
public long getTimeInterval()Read an elapsed timer -
timeStr
Helper function to format milliseconds as "%.3f" seconds -
time
Time an operation. Return the elapsed time in milliseconds.
-