progressbar icon indicating copy to clipboard operation
progressbar copied to clipboard

feat: option to keep showing elapsed time on finish

Open hexnaught opened this issue 2 years ago • 0 comments

Add an option to keep the render of time elapsed when the bar has finished.

bar := progressbar.NewOptions64(
	10,
)
// Output:
//  100% |████████████████████████████████████████|         

bar := progressbar.NewOptions64(
	10,
	progressbar.OptionShowElapsedTimeOnFinish(),
)
// Output:
//  100% |████████████████████████████████████████|  [10s]

Resolves schollz/progressbar#128

hexnaught avatar Aug 11 '22 09:08 hexnaught