I want something in python that is similar to the unix time command. The time command gives user time, real time, and system time... all of which are useful in different contexts..
I can get real time via the time.time() methods, but the others I'm not sure about...
Also, I'm using this to instrument large blocks of code, so timeit doesn't look particularly useful.
source https://stackoverflow.com/questions/71698802/how-do-i-time-python-code-similar-to-unix-time-command
Comments
Post a Comment