Gets the latency of the record in milliseconds. StreamLink calculates the latency using the clock offset and the timestamp supplied in the timeStampField field of the record.
![](../icons/collapse_all.gif)
![](../icons/collapse_all.gif)
- timeStampField (String)
- The name of the field in the record containing the timestamp that StreamLink uses to calculate the latency of the record.
![](../icons/collapse_all.gif)
The latency of the record in milliseconds, or -1 if the latency cannot be calculated.
![](../icons/collapse_all.gif)
The latency cannot be calculated if timeStampField is not present in the record or if the clock offset has not yet been established. For further information, see Clock Offset and Latency Measurement