def _GenerateIntervalSamples(interval, include_runtime, include_timestamps):
  samples = []
  name = interval[0]
  start_time = interval[1]
  stop_time = interval[2]
  if include_runtime:
    elapsed_time = stop_time - start_time
    samples.append(sample.Sample(name + ' Runtime', elapsed_time, 'seconds'))
  if include_timestamps:
    samples.append(sample.Sample(
        name + ' Start Timestamp', start_time, 'seconds'))
    samples.append(sample.Sample(
        name + ' Stop Timestamp', stop_time, 'seconds'))
  return samples
Generates Samples for a single interval timed by IntervalTimer.Measure.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/timing_util.py/_GenerateIntervalSamples