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

ztimer assumes staying acquired #7

Open
chrysn opened this issue Jun 21, 2024 · 0 comments
Open

ztimer assumes staying acquired #7

chrysn opened this issue Jun 21, 2024 · 0 comments

Comments

@chrysn
Copy link

chrysn commented Jun 21, 2024

In example 02, ztimer_now is just used in the way it can not be used: its values are compared across durations when no timer is running.

Should we just move that over to a plain counter, or is it the intention to show how time differences are measured? If the latter: do we do it 'raw' / 'we know we don't wrap' by calling ztimer_acquire/release, do we go with the ztimer_remove highly-robust-but-cumbersome way, or do we look into the higher abstractions that might be around?

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

No branches or pull requests

1 participant