Class ElapsedTimer

java.lang.Object
org.apache.commons.jcs3.utils.timing.ElapsedTimer

public class ElapsedTimer extends Object
This is a simple timer utility.
  • Constructor Details

  • Method Details

    • getElapsedTime

      public long 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