I am curious what the current best method is for measuring CPU time in Python3. To be clear, the result I want is the total CPU clock time that the program has been running (i.e. not wall clock time).
I have used the time
module for this in the past, but it is unclear to me if this is still the recommended method.
If the time
module is the best option, I am wondering if time.process_time()
or time.clock()
is better.