/// <summary>
		/// Initializes a new instance of the PerformanceCounter class
		/// </summary>
		/// <param name="autoStart">A flag that indicates whether the counter should start automatically</param>
		/// <param name="onCounterStopped">A callback to be called when the counter stops</param>
		public PerformanceCounter(bool autoStart, PerformanceCounterEventHandler onCounterStopped)
		{
			this.CounterStopped += onCounterStopped;

			if (autoStart)
				this.Start();
		}
        /// <summary>
        /// Initializes a new instance of the PerformanceCounter class
        /// </summary>
        /// <param name="autoStart">A flag that indicates whether the counter should start automatically</param>
        /// <param name="onCounterStopped">A callback to be called when the counter stops</param>
        public PerformanceCounter(bool autoStart, PerformanceCounterEventHandler onCounterStopped)
        {
            this.CounterStopped += onCounterStopped;

            if (autoStart)
            {
                this.Start();
            }
        }