public static TimePerformanceCounter StartCounter(string instanceName)
        {
            var counter = new TimePerformanceCounter(instanceName);
            counter.StartWatch();

            return counter;
        }
        public static TimePerformanceCounter StartCounter(string instanceName)
        {
            var counter = new TimePerformanceCounter(instanceName);

            counter.StartWatch();

            return(counter);
        }
 static TimePerformanceCounter()
 {
     TimePerformanceCounter.SetUpCountersByCategory();
 }