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

Access running state of Timer #7218

Closed
etiennebeaulac opened this issue Oct 16, 2024 · 2 comments · Fixed by #7220
Closed

Access running state of Timer #7218

etiennebeaulac opened this issue Oct 16, 2024 · 2 comments · Fixed by #7220

Comments

@etiennebeaulac
Copy link
Contributor

There are certain use cases where I would like to be able to check if a Timer is currently running. The class already has the member variable m_running holding that particular state, it would be nice to have a public method returning its value.

If you think this is a good idea, I could proceed to do a PR. Thanks !

@PeterJohnson
Copy link
Member

Seems like a reasonable thing to add. Naming wise, were you thinking isRunning()?

@etiennebeaulac
Copy link
Contributor Author

This would have been my guess, yes, since this is already what is used internally.

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 a pull request may close this issue.

2 participants