averageApproximateQueryTime

Given a query time measurement, calculate a new approximate query time based on the weighted averages of the old value and said new measurement.

The old value is given a weight of averagingWeight

and the new measurement a weight of 1. Additionally the measurement is padded by measurementPadding

to be on the safe side.

version(TwitchSupport && WithTwitchPlugin)
package
void
averageApproximateQueryTime

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

responseMsecs long

The new measurement of how many milliseconds the last query took to complete.