et
Elapsed time of test step
Syntax
Description
et( returns the elapsed time of the
test sequence step in timeunits)timeunits. If you omit
timeunits, the elapsed time defaults to seconds.
et is an alias for elapsed and both are
valid.
Valid time units are:
sec — seconds
msec — milliseconds
usec — microseconds
Examples
Tips
You can use
etstatements in Test Sequence and Test Assessment blocks and in Stateflow® charts.To return the amount of time that a
Whendecomposition step has been active, use theetoperator in the body of theWhendecomposition test step.To return the amount of time that the parent step of a
Whendecomposition step has been active, use theetoperator in theWhencondition expression.
Version History
Introduced in R2017a