public TypingSpeedMeter(IWpfTextView view)
        {
            _view   = view;
            _root   = new TypingSpeedControl();
            _curMax = 0;
            _start  = DateTime.UtcNow;

            // Grab a reference to the adornment layer that this adornment should be added to
            _adornmentLayer = view.GetAdornmentLayer("TypingSpeed");

            // Reposition the adornment whenever the editor window is resized
            _view.ViewportHeightChanged += delegate { OnSizeChange(); };
            _view.ViewportWidthChanged  += delegate { OnSizeChange(); };
        }
        public TypingSpeedMeter(IWpfTextView view)
        {
            _view = view;
            _root = new TypingSpeedControl();
            _curMax = 0;
            _start = DateTime.UtcNow;
          
            // Grab a reference to the adornment layer that this adornment should be added to
            _adornmentLayer = view.GetAdornmentLayer("TypingSpeed");

            // Reposition the adornment whenever the editor window is resized
            _view.ViewportHeightChanged += delegate { OnSizeChange(); };
            _view.ViewportWidthChanged += delegate { OnSizeChange(); };
         
        }