
This calculates the average time taken for a progressbar to get to its current percentage and calculates how much time it will take for the progressbar to reach 100%
Inputs
ProgressBar Value, ProgressBar Max, Percentage(includes ProgressBar percentage calculation function)
Assumes
All you do is:
1.) Declare a variable in the (General) area of your form as a string
2.) When the progressbar starts call 'BeginProgress'
3.) When ever you make the progressbars value increase get the percentage with the 'getPercentage' function then call the 'TimeRemaining' function
4.) Voila! You will have the approxamate remaining time for your progressbar.
Returns
Returns the percentage completed for a progressbar and the how much time is remaining for a progressbar to get to 100%