Control chart execution with the
elapsed( returns the simulation time
in seconds (
sec) that has elapsed since the activation of the
elapsed operator resets the counter for
sec to 0 each time the associated state reactivates.
At the entry and during actions of the state, y is assigned the length of time that the state has been active.
en, du: y = elapsed(sec);
In state and transition actions, you can use quotation marks to enclose the
y = elapsed('sec');