timing.py 375 B

123456789101112
  1. """Indirection for time functions.
  2. We intentionally grab some "time" functions internally to avoid tests mocking "time" to affect
  3. pytest runtime information (issue #185).
  4. Fixture "mock_timing" also interacts with this module for pytest's own tests.
  5. """
  6. from time import perf_counter
  7. from time import sleep
  8. from time import time
  9. __all__ = ["perf_counter", "sleep", "time"]