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

Access to time elapsed #656

Closed
EvanSchalton opened this issue Jan 6, 2019 · 2 comments
Closed

Access to time elapsed #656

EvanSchalton opened this issue Jan 6, 2019 · 2 comments
Assignees
Labels
duplicate 🗐 Seen it before p4-enhancement-future 🧨 On the back burner

Comments

@EvanSchalton
Copy link

Hey, firstly -- great tool! Thank you!

A minor feature request:
It'd be great to add a "runtime" method to the progress bar object

I've been using the following as a work around:

import time
def tqdm_runtime(prog_bar):
    epoch_prog.start_t
    epoch_prog.last_print_t
    return time.strftime('%H:%M:%S', time.gmtime(epoch_prog.last_print_t-epoch_prog.start_t))

I use it frequently to log the runtime of training neural nets, but it'd be great to see the method added

@casperdcl
Copy link
Sponsor Member

duplicate of #482, elaborated in #494, enhanced by #562

@casperdcl casperdcl changed the title Feature Request Access to time elapsed Jan 6, 2019
@casperdcl casperdcl self-assigned this Jan 6, 2019
@casperdcl casperdcl added duplicate 🗐 Seen it before p4-enhancement-future 🧨 On the back burner labels Jan 6, 2019
casperdcl added a commit that referenced this issue Jan 26, 2019
casperdcl added a commit that referenced this issue Jan 26, 2019
- fully:
    + fixes #562, fixes #482, fixes #494, fixes #656
@casperdcl
Copy link
Sponsor Member

P.S. you can use epoch_prog.format_interval(epoch_prog.last_print_t-epoch_prog.start_t) or just epoch_prog.format_interval(epoch_prog['elapsed'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🗐 Seen it before p4-enhancement-future 🧨 On the back burner
Projects
None yet
Development

No branches or pull requests

2 participants