Prediction of Stop Time

Are there any widgets for predicting when the download (or any other process) will be completed based on the percentage history?

The trivial version will simply perform a point-to-point fit based on the start time, current time and percentages, but an option is better.

The simplest GUI would be nice, but a class that simply returns a value would be very nice.

+4
source share
3 answers

For the theoretical algorithm that I would try if I wrote such a widget, it would be something like:

  • Record the amount of data transferred over one period ( KiB / s literal)
  • Remember the last 5 or 10 of these periods (to get the recent average KiB / s)
  • Subtract the total size from the transferred size (to get the "remaining bytes")
  • ???
  • Widget!

That should do it ...

(missing step: kibibytes remains divided by average KiB / s)

+2
source

Most progress indicator widgets have an update () method that takes a certain percentage.
Then they calculate the recalculation time depending on the time from the beginning and the last percent. If you have a process with a long setup time, you can add more functionality so that it does not include this time, possibly having a forecast reset clock when sending an update of 0%.

0
source

This will have the same effect as some other suggestions, but by collecting percentage data as a function of the statistical time methods, we could use R ^ 2 to create the best fit line and project it 100%. In order to take into account the current operation, a heavier weight can be placed on newer data (or older data can be depleted), and in order to ignore short-term fluctuations, a heavy weight can be placed at the first data point.

0
source

All Articles