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

Fix deprecated method in bench_time_func example #202

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

hajimes
Copy link
Contributor

@hajimes hajimes commented Sep 6, 2024

Hi,
The example code in bench_time_func.py still uses pyperf.perf_counter(), which was deprecated in version 2.0.0. This pull request updates it to use time.perf_counter(), as recommended by the API documentation.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinner vstinner merged commit 6fa3c0b into psf:main Sep 6, 2024
13 checks passed
@vstinner
Copy link
Member

vstinner commented Sep 6, 2024

Merged, thanks!

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.

2 participants