Skip to content

Use time.perf_counter_ns#30

Open
mjpieters wants to merge 1 commit into
codewars:masterfrom
mjpieters:perf_counter_ns
Open

Use time.perf_counter_ns#30
mjpieters wants to merge 1 commit into
codewars:masterfrom
mjpieters:perf_counter_ns

Conversation

@mjpieters

Copy link
Copy Markdown

This gives an integer number of nanoseconds, with far greater
precision than the timeit.default_timer == time.perf_counter timer
which provides a float (double) value in seconds.

This gives an integer number of nanoseconds, with far greater
precision than the `timeit.default_timer` == `time.perf_counter` timer
which provides a float (double) value in seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant