Skip to content

User time.perf_counter instead of time.monotonic? #191

@zpz

Description

@zpz

Please see https://www.webucator.com/article/python-clocks-explained/

time.perf_counter has a resolution 4e-7 sec, whereas time.monotonic has a resolution 0.15 sec.

I noticed at least the unix lock implementation uses monotonic. That could lead to waits longer than needed, and make small values of poll_interval not beneficial (while giving user the illusion that they have fine-grained control).

Maybe use perf_counter instead of monotonic?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions