Skip to content

Fix deprecated method in bench_time_func example#202

Merged
vstinner merged 1 commit intopsf:mainfrom
hajimes:main
Sep 6, 2024
Merged

Fix deprecated method in bench_time_func example#202
vstinner merged 1 commit intopsf:mainfrom
hajimes:main

Conversation

@hajimes
Copy link
Copy Markdown
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
Copy Markdown
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
@vstinner
Copy link
Copy Markdown
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