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

[WIP] introduce the virtual clock for simulations #407

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jun 12, 2023

  1. introduce the virtual clock for simulations

    This allows running code written for Chronos using
    `-d:asyncTimer=virtual`
    , turning it into a simple event-based simulation.
    
    Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
    cskiraly committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    5b9ec08 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. simplify virtual timer and improve compatibility

    Previous version of virtual timer used minimal modifications.
    This one instead implements poll() directly, simplifying execution.
    It also enforces one timer each poll, which makes it compatible with
    one network even per poll cycle when network events are replaced by
    timers for simulation.
    
    Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
    cskiraly committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    8580b50 View commit details
    Browse the repository at this point in the history