Time during which condition is valid
duration(
returns the number of
seconds since the conditional expression C
)C
became
true
and the associated state became active.
Note
The temporal logic operator duration
is not supported in
standalone charts in MATLAB®.
The Stateflow® chart resets the value of the duration
operator
if the conditional expression C
becomes
false
or if the associated state becomes inactive.
The duration
operator does not support conditions that
depend on local or output structures. For more information, see Access Bus Signals Through Stateflow Structures.