Exemplo n.º 1
0
        private static TimeSpan GetChannelRunTime(Pipelines pipelines, int iterationCount)
        {
            Console.WriteLine("running channel annotator");
            var tick = DateTime.Now;

            for (int i = 0; i < iterationCount; i++)
            {
                pipelines.ChannelAnnotation();
                //Console.WriteLine($"completed run {i + 1}");
            }

            var tock = DateTime.Now;

            var timeSpan = new TimeSpan(tock.Ticks - tick.Ticks);

            return(timeSpan);
        }