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

demos: Add --sleep command line option #170

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KonradBkd
Copy link
Contributor

@KonradBkd KonradBkd commented Jan 21, 2025

For some scenarios doing a std::this_thread::sleep_for in the WorkerThread (async) / SimStepHandler (sync) is useful in the demos:

  • When testing the Soft/HardResponseTimeout
  • To slow down the execution without adding the wall clock coupling to a participant configuration

Here, a command line option to configure a sleep in the WorkerThread / SimStepHandler is introduced.

-s, --sleep <ms>             | The sleep duration per work cycle in milliseconds.
                               Default is no sleeping.
                               Using this options overrides the default execution slow down.
                               Cannot be used together with '--fast'.

Additionally, the participant config samples for remote logging now use log level info.

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.

1 participant