Elapsed Timer
- Updated2025-01-28
- 4 minute(s) read
Reports the elapsed time, in milliseconds, since the first call or previous reset of the function block.
If reset mode is TRUE on a reset iteration, elapsed time (ms) returns the time elapsed prior to the reset. Otherwise, elapsed time (ms) returns zero on a reset iteration.

Dialog Box Options
Option | Description |
---|---|
Inputs | Contains the following configuration options:
|
Outputs | Contains the following configuration options:
|
Inputs/Outputs
![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() Sets elapsed time to zero. ![]() Specifies whether to report elapsed time (ms) on reset iterations. When reset mode is TRUE on a reset iteration, elapsed time (ms) returns the time that elapsed prior to the reset. When reset mode is FALSE on a reset iteration, elapsed time (ms) returns zero. ![]() Returns the amount of time, in milliseconds, that has elapsed since the initial call or previous reset of the function block. If you leave the function block running without resetting the timer, the timer restarts at zero after approximately 25 days. ![]() error out contains error information. This output provides standard error out functionality. |
The timing of this function block depends on the rate of the Timed Loop or While Loop in which you place the function block. For example, if you need the function block to update with millisecond resolution, you can place the function block in a Timed Loop configured to execute every millisecond.
The following timing diagram illustrates the behavior of this function block.
