Skip to content

Improvement of HourCounter to synchronize with simulator ClockTime #1

Description

@li-haobin

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions