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.
Declaration Syntax
Parameters
- timeStampField (String)
- The name of the field in the record containing the timestamp that StreamLink uses to calculate the latency of the record.
Return Value
The latency of the record in milliseconds, or -1 if the latency cannot be calculated.
Remarks
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