Skip to content
pythonwrench Development-0.6.1 documentation
pythonwrench.time module
Initializing search
    pythonwrench
    pythonwrench
    • pythonwrench
      • pythonwrench package
        • Subpackages
        • Submodules
          • pythonwrench.abc module
          • pythonwrench.argparse module
          • pythonwrench.cast module
          • pythonwrench.checksum module
          • pythonwrench.concurrent module
          • pythonwrench.csv module
          • pythonwrench.dataclasses module
          • pythonwrench.datetime module
          • pythonwrench.difflib module
          • pythonwrench.disk_cache module
          • pythonwrench.enum module
          • pythonwrench.functools module
          • pythonwrench.hashlib module
          • pythonwrench.importlib module
          • pythonwrench.inspect module
          • pythonwrench.json module
          • pythonwrench.jsonl module
          • pythonwrench.logging module
          • pythonwrench.math module
          • pythonwrench.os module
          • pythonwrench.pickle module
          • pythonwrench.random module
          • pythonwrench.re module
          • pythonwrench.semver module
          • pythonwrench.time module
            • C pythonwrench.time.Ticker
              • M set_prev_tick
              • M tick
          • pythonwrench.warnings module
    • C pythonwrench.time.Ticker
      • M set_prev_tick
      • M tick

    pythonwrench.time module¶

    class pythonwrench.time.Ticker(*, get_time_fn: ~typing.Callable[[], float] = <built-in function perf_counter>, prev_tick: float | None = None)[source]¶

    Bases: object

    set_prev_tick(prev_tick: float | None = None) → None[source]¶

    Set tick time.

    tick() → float[source]¶

    Set tick time and returns duration since last tick.

    © Copyright Étienne Labbé (Labbeti).
    Created using Sphinx 8.2.3. and Sphinx-Immaterial