ID EN
Time

process_time

Python 3.11

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. The reference point of the returned value is undefined, so that only the difference between the results of two calls is valid.

Syntax

PYTHON
time.process_time() → float

See Also

process_time_ns() float