static void ProcessImages() { Console.WriteLine("Starting image processing sequentially"); CreatingPerformanceCounters.SequentialTest(); Console.WriteLine("Processed sequentially. Starting in parallel"); CreatingPerformanceCounters.ParallelTest(); Console.WriteLine("Processed in parallel"); ImagesProcessingDone = true; }
static CounterSetupResult SetupCounters() { return(CreatingPerformanceCounters.SetupCounters()); }