Example #1
0
        public void TimeStep()
        {
            if (Elm == null)
            {
                return;
            }
            double v = Elm.GetScopeValue(Value);

            if (v < MinValues[Pointer])
            {
                MinValues[Pointer] = v;
            }
            if (v > MaxValues[Pointer])
            {
                MaxValues[Pointer] = v;
            }
            LastValue = v;
            mCounter++;
            if (mCounter >= Speed)
            {
                Pointer            = (Pointer + 1) & (mScopePointCount - 1);
                MinValues[Pointer] = MaxValues[Pointer] = v;
                mCounter           = 0;
            }
        }