private static TimeSpan GetBatchRunTime(Pipelines pipelines, int iterationCount) { Console.WriteLine("running in batches"); var tick = DateTime.Now; for (int i = 0; i < iterationCount; i++) { pipelines.BatchParallelAnnotation(); //Console.WriteLine($"completed run {i + 1}"); } var tock = DateTime.Now; var batchTimeSpan = new TimeSpan(tock.Ticks - tick.Ticks); return(batchTimeSpan); }