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

Add a mechanism for synchronizing delays to the start of a Slot #4

Open
rye opened this issue Jul 11, 2019 · 0 comments
Open

Add a mechanism for synchronizing delays to the start of a Slot #4

rye opened this issue Jul 11, 2019 · 0 comments
Assignees
Labels
Type: New Feature 📰 Issues and PRs relating to new features
Milestone

Comments

@rye
Copy link
Owner

rye commented Jul 11, 2019

For example, if after #3 I specify a SlotTime of 1s and my command takes 500ms, a sleep of 0 slots of length should last 0ms, whereas a sleep of 1 should last 500ms.

I'm not sure I like this design, but it'd certainly be more real-time.

I could also see just subtracting from the delay the time that elapsed during execution, then clamping with a lower bound of 0ns to prevent panics.

@rye rye self-assigned this Jul 11, 2019
@rye rye added the Type: New Feature 📰 Issues and PRs relating to new features label Jul 11, 2019
@rye rye added this to the v1 milestone Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature 📰 Issues and PRs relating to new features
Projects
None yet
Development

No branches or pull requests

1 participant