29.11.20 22:44, email@example.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.