-
Notifications
You must be signed in to change notification settings - Fork 35
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
Would be nice if Clock() type exposed 'clock ticks' to 'simulation ticks' ratio. #34
Comments
@NickShaffner this sounds reasonable, my gut says a slightly different name: |
@cfelton I can see that - wait() would work for me. Also about the clock ticks to simulation ticks constant - how about 'ticks'? (since _hticks is used as half ticks in the clock already). |
#40 has Clock.ticks and Clock.delay. @cfelton - it made sense to me to use delay() instead of wait() in the end because it's really doing exactly the same thing as delay() does for the simulation clock. In fact, it might be cool if the simulation clock was somehow exposed as a Clock() object. (but that's the subject for another pull request :)) |
Added in: #40 |
This would be particularly useful for being able to delay a certain number of clock ticks. Adding a delay() generator method to the clock type would be another means of exposing this.
ex:
The text was updated successfully, but these errors were encountered: