Skip to content

does time.monotonic() have a unit? #1846

@ericwertz

Description

@ericwertz

I cannot tell from the documentation for time.monotonic() if it has units or not -- like seconds or milliseconds, etc.

I'm wondering if this function can be used for measuring time deltas (like Arduino's millis()) or if it can only be used for ordering events time relative to each other. It seems like the former since it has gone to the trouble of being a float, whereas integers would suffice were it (only) the latter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions