Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Ptr32RateCounter"/> class.
        /// </summary>
        /// <param name="device">The <see cref="Ptr32"/> device from which to take measurements.</param>
        /// <exception cref="ArgumentNullException"><paramref name="device"/> is <c>null</c>.</exception>
        public Ptr32RateCounter(Ptr32 device)
        {
            if (device == null) {
                throw new ArgumentNullException("device");
            }

            m_device = device;
            m_parser = new Ptr32Parser(Analyze);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Ptr32RateCounter"/> class.
        /// </summary>
        /// <param name="device">The <see cref="Ptr32"/> device from which to take measurements.</param>
        /// <exception cref="ArgumentNullException"><paramref name="device"/> is <c>null</c>.</exception>
        public Ptr32RateCounter(Ptr32 device)
        {
            if (device == null)
            {
                throw new ArgumentNullException("device");
            }

            m_device = device;
            m_parser = new Ptr32Parser(Analyze);
        }