private void ElapseMinute(EWMA ewma) { for (int i = 1; i <= 12; i++) { ewma.Tick(); } }
private static void ElapseMinute(EWMA ewma) { for (var i = 1; i <= 12; i++) { ewma.Tick(); } }
private void Tick() { if (_cancel.IsCancellationRequested) { return; } _m1Rate.Tick(); _m5Rate.Tick(); _m15Rate.Tick(); }
private static long ElapseMinute(long currentTimestamp, EWMA ewma) { for (var i = 1; i <= 12; i++) { currentTimestamp += FiveSecondsTimestamp; ewma.Tick(currentTimestamp); } return(currentTimestamp); }
public void UpdateRequestTime(long requestTimeInMilliseconds) { _ewma.Update(requestTimeInMilliseconds); _ewma.Tick(); }
private void Tick() { _m1Rate.Tick(); _m5Rate.Tick(); _m15Rate.Tick(); }
private void TimeElapsed() { _ewma.Tick(); }
public void Tick() { _m1Rate.Tick(); _m5Rate.Tick(); _m15Rate.Tick(); }
private void TimeElapsed(long timestamp) { _ewma.Tick(timestamp); }
public void Tick() { _ewma.Tick(); }
private void Tick(long timestamp) { _m1Rate.Tick(timestamp); _m5Rate.Tick(timestamp); _m15Rate.Tick(timestamp); }
/// <summary> /// Updates the moving averages. /// </summary> private void Tick() { m1Rate.Tick(); m5Rate.Tick(); m15Rate.Tick(); }