-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Customised timer format #236
Comments
Sounds good! Feel free to open PR 👍🏼 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The timer feature is certainly nice to have, but its hardcoded format of
" ({}.{:02.0f})"
is perhaps not the best choice in some cases. In my particular example, the tasks usually take minutes to hours, and the user doesn't care about fractions of a second.I suggest modifying the
timer
argument to acceptstr | bool
. The logic would look like this:False
: no timerTrue
: timer with the default formattings: str
: timer withs
as its format string,s
must have one or two slots, otherwise throw an exception.The text was updated successfully, but these errors were encountered: