Python‎ > ‎time‎ > ‎

time.clock


Return
Return with the real time in the system as floating points expressed in seconds.

Syntax
time.clock()

Parameters
N/A

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

Example
Return the time in floating in seconds. The time module needed to import into shell IDLE in order to allow time.clock() method to return value.
 >>> import time
>>> time.clock()
5.401717638174587e-07





Comments