예제 #1
0
 private void ElapseMinute(EWMA ewma)
 {
     for (int i = 1; i <= 12; i++)
     {
         ewma.Tick();
     }
 }
예제 #2
0
 private static void ElapseMinute(EWMA ewma)
 {
     for (var i = 1; i <= 12; i++)
     {
         ewma.Tick();
     }
 }
예제 #3
0
 private void Tick()
 {
     if (_cancel.IsCancellationRequested)
     {
         return;
     }
     _m1Rate.Tick();
     _m5Rate.Tick();
     _m15Rate.Tick();
 }
예제 #4
0
        private static long ElapseMinute(long currentTimestamp, EWMA ewma)
        {
            for (var i = 1; i <= 12; i++)
            {
                currentTimestamp += FiveSecondsTimestamp;

                ewma.Tick(currentTimestamp);
            }

            return(currentTimestamp);
        }
예제 #5
0
 public void UpdateRequestTime(long requestTimeInMilliseconds)
 {
     _ewma.Update(requestTimeInMilliseconds);
     _ewma.Tick();
 }
예제 #6
0
 private void Tick()
 {
     _m1Rate.Tick();
     _m5Rate.Tick();
     _m15Rate.Tick();
 }
예제 #7
0
 private void TimeElapsed()
 {
     _ewma.Tick();
 }
예제 #8
0
 public void Tick()
 {
     _m1Rate.Tick();
     _m5Rate.Tick();
     _m15Rate.Tick();
 }
예제 #9
0
 private void TimeElapsed(long timestamp)
 {
     _ewma.Tick(timestamp);
 }
예제 #10
0
 public void Tick()
 {
     _ewma.Tick();
 }
예제 #11
0
 private void Tick(long timestamp)
 {
     _m1Rate.Tick(timestamp);
     _m5Rate.Tick(timestamp);
     _m15Rate.Tick(timestamp);
 }
예제 #12
0
파일: Meter.cs 프로젝트: lanicon/nesper
 /// <summary>
 ///     Updates the moving averages.
 /// </summary>
 private void Tick()
 {
     m1Rate.Tick();
     m5Rate.Tick();
     m15Rate.Tick();
 }