Timer Utility¶
-
xobox.utils.timer.
counter
()[source]¶ Return the value (in fractional seconds) of a performance counter with the best resolution available.
The counter actually used depends on the platform and Python version:
- For Python versions >=3.3,
time.perf_counter()
is used. - For Python versions < 3.3 on Windows,
time.clock()
is used. - For Python versions < 3.3 on other platforms,
time.time()
is used.
Returns: progressing counter value (in fractional seconds) Return type: float - For Python versions >=3.3,