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

Expose the sim's epoch and elapsed duration #54

Merged
merged 3 commits into from
Nov 14, 2022
Merged

Expose the sim's epoch and elapsed duration #54

merged 3 commits into from
Nov 14, 2022

Conversation

mcches
Copy link
Contributor

@mcches mcches commented Nov 10, 2022

Each invocation of run() moves the simulation's logical time forward. Systems that use logical clocks need this information to build simulated primitives, ie Lamport clock.

By exposing both an epoch for the simulation and the elapsed time, we can now build application level logical clocks.

@mcches mcches merged commit 3507124 into main Nov 14, 2022
@mcches mcches deleted the time branch November 14, 2022 16:35
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 this pull request may close these issues.

None yet

2 participants