Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c-nichols opened this issue May 12, 2015 · 0 comments
Open

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

c-nichols opened this issue May 12, 2015 · 0 comments

Comments

@c-nichols
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant