Class Times


  • public class Times
    extends Object
    This class holds feature, scenario or step indeces and associated times.
    • Constructor Detail

      • Times

        public Times()
    • Method Detail

      • addTime

        public void addTime​(long nanoseconds,
                            int index)
        Add a time and an index to the list of times.
        Parameters:
        nanoseconds - The nanoseconds.
        index - The feature, scenario or step index.
      • getMinimumTimeString

        public String getMinimumTimeString()
        Get the human-readable time string for the minimum time.
        Returns:
        The time string.
      • getMinimumTimeIndex

        public int getMinimumTimeIndex()
        Get the index for the minimum time.
        Returns:
        The feature, scenario or step index.
      • getMaximumTimeString

        public String getMaximumTimeString()
        Get the human-readable time string for the maximum time.
        Returns:
        The time string.
      • getMaximumTimeIndex

        public int getMaximumTimeIndex()
        Get the index for the maximum time.
        Returns:
        The feature, scenario or step index.
      • getAverageTimeString

        public String getAverageTimeString()
        Get the average time of all recorded times.
        Returns:
        The time string.