/// <summary>
        /// clear the performance counter
        /// </summary>
        public static void Close()
        {
            PerfCounterAccess.Close();
#if DEBUG
            PerfCounterAccess.DeleteCategory();
#endif
        }
        /// <summary>
        /// Initialize the performance counter
        /// </summary>
        public static void InitPerformanceCounter()
        {
#if DEBUG
            PerfCounterAccess.CreateCategory();
#endif

            PerfCounterAccess.InitPerfCounter();
        }
 /// <summary>
 /// delete the performance counter
 /// </summary>
 public static void DeleteCategory()
 {
     PerfCounterAccess.DeleteCategory();
 }
 /// <summary>
 /// create the performance counter
 /// </summary>
 public static void CreateCategory()
 {
     PerfCounterAccess.CreateCategory();
 }
 /// <summary>
 /// Increment the performance counter asynchronously for better performance
 /// </summary>
 public static void UpdateStatistic()
 {
     Task.Factory.StartNew(() => PerfCounterAccess.UpdateStatistic());
 }