Documentation

Elapsed Time

Read target computer time

  • Library:
  • Target Management / Target Information

Description

The Elapsed Time block outputs in an internal format the elapsed time since the last restart of the target computer.

To compute the difference in nanoseconds between two vector time values, pass both time values to the Time Stamp Delta block. To convert a single time value to nanoseconds, pass one time value to a Time Stamp Delta block and ground the other input.

Ports

Input

expand all

Dynamically typed, for use in establishing the block execution order. The block does not use the port value.

Data Types: double

Output

expand all

The time value is in an internal format. To convert it to nanoseconds, use the Time Stamp Delta block.

Data Types: [uint32 uint32]

Parameters

expand all

Enter the base sample time or a multiple of the base sample time. -1 means that sample time is inherited.

Introduced in R2017b

Was this topic helpful?