Hrvoje Niksic wrote:

> > I'll grab the "other" part and explain what curl does. It shows a
"current
> > speed" based on the past five seconds,
>
> Does it mean that the speed doesn't change for five seconds, or that
> you always show the *current* speed, but relative to the last five
> seconds?  I may be missing something, but I don't see how to efficiently
> implement the latter.

Could you keep an array of speeds that is updated once a second such that
the value from six seconds ago is discarded and when the value for the
second that just ended is recorded?

Tony

Reply via email to