Skip to content

Add Execution Time Measurement Snippet #251

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

Open
iluwatar opened this issue Mar 27, 2025 · 0 comments · May be fixed by #257
Open

Add Execution Time Measurement Snippet #251

iluwatar opened this issue Mar 27, 2025 · 0 comments · May be fixed by #257

Comments

@iluwatar
Copy link
Owner

Description:

Create a utility that measures how long a code block takes to execute in milliseconds.

Acceptance Criteria:

  • A new execution timer snippet has been added
  • Method long measure(Runnable task) is implemented
  • Returns execution time in milliseconds
  • Test/example provided with Thread.sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

1 participant