time.get_clock_info(name)
Get information on the specified clock as a namespace object. Supported clock names and the corresponding functions to read their value are:
-
'clock':time.clock() -
'monotonic':time.monotonic() -
'perf_counter':time.perf_counter() -
'process_time':time.process_time() -
'time':time.time()
The result has the following attributes:
-
adjustable:
Trueif the clock can be changed automatically (e.g. by a NTP daemon) or manually by the system administrator,Falseotherwise - implementation: The name of the underlying C function used to get the clock value
-
monotonic:
Trueif the clock cannot go backward,Falseotherwise -
resolution: The resolution of the clock in seconds (
float)
New in version 3.3.
Please login to continue.