Package uk.ac.gda.devices.hatsaxs
Class SampleListStats<T>
java.lang.Object
uk.ac.gda.devices.hatsaxs.SampleListStats<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> StringgetRuntimeString(List<T> samples, ToDoubleFunction<T> timeExtractor, int overhead) Get the total runtime of a list of samples as a HH:MM:SS string
-
Constructor Details
-
SampleListStats
public SampleListStats()
-
-
Method Details
-
getRuntimeString
public static <T> String getRuntimeString(List<T> samples, ToDoubleFunction<T> timeExtractor, int overhead) Get the total runtime of a list of samples as a HH:MM:SS string- Parameters:
samples- list of samplestimeExtractor- function to get a time (in seconds) of each sampleoverhead- the extra time (in seconds) that each sample takes- Returns:
- Runtime string in the form hh:mm:ss
-