Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: option to keep showing elapsed time on finish #133

Merged
merged 1 commit into from Sep 1, 2022

Conversation

hexnaught
Copy link
Contributor

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 #128

@schollz
Copy link
Owner

schollz commented Sep 1, 2022

Perfect, thank you!!

@schollz schollz merged commit be3c9b6 into schollz:master Sep 1, 2022
@hexnaught hexnaught deleted the upstream/issue/128 branch September 1, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep elapsed time when finished
2 participants