Skip to content
Tom Barbette edited this page Nov 25, 2022 · 4 revisions

TSCClock Element Documentation

NAME

TSCClock — Click element; TSC-based user clock

SYNOPSIS

TSCClock()

Batching: Batching natively supported
Ports: at most 1 input, the same number of outputs
Processing: push

DESCRIPTION

Use the TSC counter to provide a very fast timestamp method. It will only be used after the clock system has proven to be stable enough, on modern hardware it will be around 15 seconds.

This will not work if your system does not have (grep /proc/cpuinfo) constant_tsc and nonstop_tsc.

Click needs to be compiled with --enable-user-timestamp for this to be used.

If packets go through this element, the element will consider the timestamp field is in ticks (eg TSC by default), and convert it to the real time.

Arguments:

  • BASE — Element. Take the base time from a given source instead of get_timeofday. Eg NTP. MBGClock is the only acceptable implementation for now, taking the source from a MBG PCIe GPS clock. Optional.
  • SOURCE — Element. Instead of using the TSC as clock, use the given source element. Eg. FromDPDKDevice for device that support rte_eth_read_clock. Optional.

Generated by click-elem2man from ../elements/userlevel/tscclock.hh:20 on 2022/11/25.

Clone this wiki locally