Example #1
0
        private static TimeSpan GetConcurrentRunTime(Pipelines pipelines, int iterationCount)
        {
            Console.WriteLine("running concurrent queue");
            var tick = DateTime.Now;

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

            var tock = DateTime.Now;

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

            return(batchTimeSpan);
        }