Skip to content

[Feature] pbio/os: Add an API for a fixed *frequency* timers #2282

@ArcaneNibble

Description

@ArcaneNibble

Twice now I've wanted to run some code at a fixed frequency rather than after a fixed delay. I've been achieving this by using timer.start += timer.duration;, but this very much feels like it violates some abstraction boundaries. We should probably have a proper API for this, but I'm not sure how it'd look. PBIO_OS_AWAIT_NEXT_PERIOD?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions