public long DeltaAdd( long currentTime, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { double d = _exprTimePeriod.EvaluateAsSeconds(eventsPerStream, isNewData, context); return(_exprTimePeriod.TimeAbacus.DeltaForSecondsDouble(d)); }
public long DeltaMillisecondsAdd(long currentTime, EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext context) { double d = _exprTimePeriod.EvaluateAsSeconds(eventsPerStream, isNewData, context); return((long)Math.Round(d * 1000d)); }