-
Notifications
You must be signed in to change notification settings - Fork 81
RecordTimestamp
Tom Barbette edited this page May 7, 2020
·
4 revisions
RecordTimestamp — Click element; Record timestamp in memory
RecordTimestamp([keywords N])
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: push
Drivers: userlevel
record current timestamp in a vector each time a packet is pushed through this element.
- COUNTER — Relies on a specific NumberPacket element to fetch the packet counter. Defaults to no COUNTER element.
- N — Size of the vector, defaults to 65536.
- OFFSET — If offset is set, the slot in the vector will be read from packet, assuming that the packet was previously being marked using a NumberPacket element. If not set or < 0, the vector will be filled in order.
- DYNAMIC — If true, allows to grow the vector on runtime. This is disabled by default because it is not multi thread safe a,d creates a spike in latency that is due to the long time taken to resize. If the number of packets reaches a non dynamic TimestampDiff, it will crash.
- NET_ORDER — Writes the number in network order format and returns this number acounting for this format. If COUNTER is set, it adheres to the settings of that element. Otherwise, user can set it. Defaults to false.
- SAMPLE — Only samples one packet every N packets. Defaults to 1 (all packets)
Generated by click-elem2man from ../elements/analysis/recordtimestamp.hh:13
on 2020/05/07.