Elapsed time of simulation
t(
returns the simulation time in
timeunits
)timeunits
. If you omit timeunits
, the elapsed
time defaults to seconds. t
is an alias for
getSimulationTime
and both are valid.
Valid time units are:
sec — seconds
msec — milliseconds
usec — microseconds
t(msec)
Elapsed simulation time ( t
) statements can be used in the Test
Sequence and Test Assessment blocks and in Stateflow® charts.