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

Ensure Times Are Closed in Case of Early Exit #188

Open
nicholas-mainardi opened this issue Jan 18, 2023 · 0 comments
Open

Ensure Times Are Closed in Case of Early Exit #188

nicholas-mainardi opened this issue Jan 18, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nicholas-mainardi
Copy link

Some computationally intensive operations rely on the start_timer/end_timer macros to print the execution time employed for such operations. Nonetheless, if an error occurs, such operations might end before calling the end_timer macro, which would leave side effects on the state of the macro, which might affect how the timings of other profiled operations run concurrently are displayed. Therefore, we would need to check each instance of start_timer to ensure that end_timer is always called for any possible execution flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant