Main Content

et

Elapsed time of test step

Description

et(timeunits) returns the elapsed time of the test sequence step in 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

example

Examples

expand all

et(msec)

Tips

  • You can use et statements in Test Sequence and Test Assessment blocks and in Stateflow® charts.

  • To return the amount of time that a When decomposition step has been active, use the et operator in the body of the When decomposition test step.

  • To return the amount of time that the parent step of a When decomposition step has been active, use the et operator in the When condition expression.

Version History

Introduced in R2017a