Skip to content
New issue

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

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

Already on GitHub? # to your account

New features for timing functions #322

Closed
natashawatkins opened this issue Aug 6, 2017 · 2 comments
Closed

New features for timing functions #322

natashawatkins opened this issue Aug 6, 2017 · 2 comments

Comments

@natashawatkins
Copy link
Member

natashawatkins commented Aug 6, 2017

.tic, .tac, .toc are relatively basic at the moment.

As discussed in #319, possible improvements include:

  • printing results with fewer decimal places by default
  • suppressing output
  • choosing appropriate units of measurement (similar to %timeit)
  • running loops (like %timeit)
@albop
Copy link
Contributor

albop commented Aug 6, 2017

Another suggestion could be to print the file/line number from where the function is called. This could be done with a bit of metamagic (and a small performance cost).
For running loops, maybe something like #125 could be handy.

@albop
Copy link
Contributor

albop commented Aug 6, 2017

Also, a jitable version of tic,tac,toc would be cool. There is a bit of a trade-off between jitteability and functionalities, so maybe there could be two versions.

mmcky pushed a commit that referenced this issue Sep 28, 2017
* FEAT: Add various options to timing.py

* TEST: Add tests to timing.py
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants