29.11.20 22:44, sdemen...@gmail.com пише:
> The feature I am looking for is more about timing a code block or a function 
> while running the code in dev/production. Not about timing it for 
> benchmarking purposes.
> To use timeit (or the current Timer class), one has to write the stmt as a 
> string which is not convenient (yet I understand that if you want to time a 
> code snippet by running it more than once there may be not alternative than 
> using stmt as strings)

You can pass a function.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/JEBUD33PSS7PW5WSYW5M5YOHI7ZOB4JK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to