Class ElapsedTimer
java.lang.Object
org.apache.commons.jcs3.utils.timing.ElapsedTimer
This is a simple timer utility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the time elapsed between the start time and now.Returns the elapsed time with the display suffix.
-
Constructor Details
-
ElapsedTimer
public ElapsedTimer()
-
-
Method Details
-
getElapsedTime
Gets the time elapsed between the start time and now. The start time is reset to now. Subsequent calls will get the time between then and now.- Returns:
- the elapsed time
-
getElapsedTimeString
Returns the elapsed time with the display suffix.- Returns:
- formatted elapsed Time
-