public LRRD(TimeSpan Length, TimeSpan Resolution) { this.Resolution = Resolution; TotalValue = new LRRDEntry(); int l = (int)(Length.TotalSeconds / Resolution.TotalSeconds); values = new LRRDEntry[l]; for (int i = 0; i < values.Length; i++) { values[i] = new LRRDEntry(); } lastDate = DateTime.Now; }
public void sub(LRRDEntry entry) { this.totval -= entry.totval; this.weight -= entry.weight; }