Mpdreamz / shellprogressbar

ShellProgressBar - display progress in your console application
MIT License
1.44k stars 134 forks source link

Added option to set an estimated duration #38

Closed klemmchr closed 4 years ago

klemmchr commented 5 years ago

Added an option to set an estimated duration for a progress bar. In some cases you are able to calculate the estimated duration for an task (e.g. downloads or uploads). This option is deactivated by default and can be set in the ProgressBarOptions. The estimated duration can be set by using the new overload of the Tick method or by setting the EstimatedDuration property on the progress bar.

Mpdreamz commented 5 years ago

Such an awesome feature, thank you for the PR!

Will try and make time to review this week and publish an update once merged

Mpdreamz commented 5 years ago

Revisiting this I think the property on IProgressBar is sufficient enough, what do you reckon @chris579 ?

klemmchr commented 5 years ago

What do you exactly mean?

m1dst commented 4 years ago

It would be great to get the estimated time feature in the main branch.

klemmchr commented 4 years ago

Dunno if @Mpdreamz is still active, my question is still unanswered.

Mpdreamz commented 4 years ago

@chris579 I had not been for a while.

Too long to still have the context for my original question. Checked this out locally, looks great! Merging this in (finally!)