Class Times
- java.lang.Object
-
- com.trivago.cluecumber.engine.rendering.pages.pojos.Times
-
public class Times extends Object
This class holds feature, scenario or step indeces and associated times.
-
-
Constructor Summary
Constructors Constructor Description Times()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(long nanoseconds, int index)Add a time and an index to the list of times.StringgetAverageTimeString()Get the average time of all recorded times.intgetMaximumTimeIndex()Get the index for the maximum time.StringgetMaximumTimeString()Get the human-readable time string for the maximum time.intgetMinimumTimeIndex()Get the index for the minimum time.StringgetMinimumTimeString()Get the human-readable time string for the minimum time.
-
-
-
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.
-
-