We want to see how long the methods need to execute in order to see what process hogs the CPU. For this we will use the [time.process_time()](https://docs.python.org/dev/library/time.html#time.process_time) method which will:
Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition.
For timing systemwide we can use time.time():
Return the time in seconds since the epoch as a floating point number...
Migrated from internal repository. Originally created by Mark Huber on Jun 21, 2022 at 3:39 PM PDT.
We want to see how long the methods need to execute in order to see what process hogs the CPU. For this we will use the
[time.process_time()](https://docs.python.org/dev/library/time.html#time.process_time)
method which will:For timing systemwide we can use
time.time()
: