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 timeit.default_timer as timer function #138

Closed
wants to merge 1 commit into from

Conversation

beniwohli
Copy link
Contributor

on Python 3, this is timer.perf_counter, which is preferable
to time.time due to it being monotonic.

on Python 2, it's either time.clock (Windows) or time.time
(everywhere else).

on Python 3, this is `timer.perf_counter`, which is preferable
to `time.time` due to it being monotonic.

on Python 2, it's either `time.clock` (Windows) or `time.time`
(everywhere else).
@beniwohli beniwohli closed this in 0df7ea1 Jan 20, 2018
beniwohli added a commit that referenced this pull request Jan 20, 2018
on Python 3, this is `timer.perf_counter`, which is preferable
to `time.time` due to it being monotonic.

on Python 2, it's either `time.clock` (Windows) or `time.time`
(everywhere else).

closes #138
@beniwohli beniwohli deleted the perf-counter-timer branch January 20, 2018 09:44
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

Successfully merging this pull request may close these issues.

None yet

1 participant