Skip to content

use time.clock() instead of time.time() #16

Description

@c-nichols

time.time() will return the server's best guess at the current wall clock time. Wall clock time can be affected by NTP updates, result in artificially high or low (even negative) runtimes for requests.

time.clock() uses the processor's internal counters to measure time since last reboot. It will never "jump" like time.time() will, and so is the preferred method for profiling runtimes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions