FastClick

Elements / Timestamps

TimestampDiff

Compute the RTT of packets marked with [RecordTimestamp](RecordTimestamp)

SYNOPSIS§

TimestampDiff()

Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: push
Drivers: userlevel

DESCRIPTION§

Compute the difference between the recorded timestamp of a packet using RecordTimestamp and a fresh timestamp. Computations are performed only for numbered packets, either by a NumberPacket element or an external entity.

Arguments:

  • RECORDER — Instance of RecordTimestamp that provides the initial timestamp.
  • OFFSET — Integer. Offset in the packet where the timestamp resides.
  • N — Size of the reservoir. Defaults to 0.
  • MAXDELAY — Integer. Maximum delay in milliseconds. If a packet exhibits such a delay (or greater), the user is notified. Defaults to 1000 ms (1 sec).

SEE ALSO§

RecordTimestamp, NumberPacket

Generated by click-elem2man from ../elements/analysis/timestampdiff.hh:18 on 2026/11/02.