Package com.spun.util.timers
Class LapTimer
java.lang.Object
com.spun.util.timers.LapTimer
A Utility for timing things. this is NOT multi-thread safe.
-
Constructor Details
-
LapTimer
public LapTimer() -
LapTimer
-
-
Method Details
-
registerClock
-
getLabel
-
lap
Marks the time for a lap and a label. ie. A timer could store - 1 hour 10 mins ["1st Quarter", 15 mins,"2nd Quarter", 15 mins,"Half Time", 10 mins, "3rd Quarter", 15 mins,"4th Quarter", 15 mins] -
end
-
isPaused
public boolean isPaused() -
pause
public void pause() -
resume
public void resume() -
lap
-
getLapTimes
-
getLapCount
public int getLapCount() -
getLap
-
getLap
-
getTotalTime
public long getTotalTime() -
getTotalTimeAsDateDifference
-
toString
-