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

Improvement of HourCounter to synchronize with simulator ClockTime #1

Closed
li-haobin opened this issue May 1, 2020 · 0 comments
Closed
Assignees

Comments

@li-haobin
Copy link
Owner

Currently, HourCounter has two ways for recording the count, i.e., ObserveCount(...) and ObserveChange(...), both required ClockTime as the parameter.
However, in O2DESNet v3 the HourCounter is already bound to the Sandbox by AddHourCounter(). Therefore, the ClockTime shall be able to be accessed implicitly instead of explicitly passed in which may cause inconsistency.

In addition, the AverageCount and probably other statistics are updated on the LastTime which is inaccurate, especially in an hourly or short period statistics. Therefore, we shall update the statistics based on ClockTime, which can also 1be handled implicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant