Class SampleListStats<T>

java.lang.Object
uk.ac.gda.devices.hatsaxs.SampleListStats<T>

public class SampleListStats<T> extends Object
  • 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 samples
      timeExtractor - function to get a time (in seconds) of each sample
      overhead - the extra time (in seconds) that each sample takes
      Returns:
      Runtime string in the form hh:mm:ss