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

Add timing option for commands #428

Open
dancingcactus opened this issue Jun 15, 2022 · 0 comments
Open

Add timing option for commands #428

dancingcactus opened this issue Jun 15, 2022 · 0 comments

Comments

@dancingcactus
Copy link

dancingcactus commented Jun 15, 2022

First off I LOVE doit. Such a brilliant piece of tech and a real-timesaver.

I have a lot of tasks that take multiple minutes to run. These are things like training machine learning models and converting large files into different formats. One thing I am working on now is optimizing the training pipeline so that it takes less time. I would LOVE to be able to add a flag to get the amount of time it takes a command/sub command takes to run.

The idea would be to do something like (assuming I have a command called train).

doit train --timing then it would print out
. train - 2:30 minutes

or it I had multiple tasks

-- prep - 0 seconds
. convert - 23 Seconds
. train - 2:21 Minutes 

While I could use timeit for most of the python tasks. Most of the tasks I have are command line tasks.

Fund with Polar
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

No branches or pull requests

1 participant