pydoit / doit

CLI task management & automation tool

Home Page:http://pydoit.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add timing option for commands

dancingcactus opened this issue · comments

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