private void GenerateInitialValues() { ReadFirst = true; PredByte = ReadByte; Pred = ReadTime.AddSeconds(-1); Succ = ReadTime; }
private void GetInitialValues() { ReadFirst = true; PredByte = ReadByte; Curr = ReadTime.AddSeconds(-1 * ReadTime.Second); Pred = ReadTime; MinuteSamples = 1; WriteLine(Curr, ReadByte); }
protected override void Execute() { if (!ReadFirst) { GenerateInitialValues(); } if (Pred == ReadTime) { return; } // we're missing a second or two. fill in the gap(s). if (Succ != ReadTime) { FillGapWithLastByte(); } Succ = ReadTime.AddSeconds(1); Pred = ReadTime; PredByte = ReadByte; Target.WriteLine(ReadLine); }