public virtual void Add(DateTime dt, double val) { base.Add(dt, val); //values.AddLast(new ValueAtTime(dt, val)); //dtLast = dt; double t = (double)(dt.Ticks - firstTimeTick) / tps; rs.Add(t, val); }
public virtual void Add(DateTime dt, double val) { if (0 == base.values.Count) { firstTimeTick = dt.Ticks; } base.Add(dt, val); //values.AddLast(new ObjectAtTime(dt, o)); //dtLast = dt; double t = (double)(dt.Ticks - firstTimeTick) / tps; rs.Add(t, val); NeedToCalcStats = true; }