Class LapTime

java.lang.Object
com.spun.util.timers.LapTime

public class LapTime
extends Object
A Utility for timing things. this is multi-thread safe.
  • Constructor Details

    • LapTime

      public LapTime​(long lapTime, String label)
  • Method Details

    • getLapTime

      public long getLapTime()
    • getLabel

      public String getLabel()
    • getLapTimeAsDateDifference

      public DateDifference getLapTimeAsDateDifference()
    • toArray

      public static LapTime[] toArray​(ArrayList<LapTime> ArrayListOf)
      A convenience function to turn a ArrayList of LapTime objects into an Array of the LapTime objects.
      Parameters:
      ArrayListOf - a ArrayList of LapTime objects
      Returns:
      the array of LapTime.
      Throws:
      Error - if an element of ArrayListOf is not a LapTime object.
    • toString

      public String toString()
      Overrides:
      toString in class Object