Python‎ > ‎time‎ > ‎

time.process_time

http://www.adilwaseem.com/

Return 
Return with sum of the kernel and user-space CPU time.

Syntax
 process_time() -> float

Parameters
N/A

Import module
Importing module is required in the Shell window and the Editor window.

Example
Return the time consumed by CPU to perform given task.
 >>> 
>>> import time
>>> time.process_time()
0.796875
>>>

Comments