Skip to content

clock_diff_measurement_pb2

Generated protocol buffer code.

Classes:

ClockDiffMeasurement

ClockDiffMeasurement(
    *,
    src: ClockId | None = ...,
    dst: ClockId | None = ...,
    diff_ns: int = ...
)

Bases: Message

A graph update containing a time offset measurement between two clocks.

While there are ClockMasterUpdate and Phc2SysUpdate which also contain time offset measurements, this message is for measurements that are done by other means, e.g. by extracting timestamps from sensor data and comparing it with packet ingress time in the driver.

This kind of measurement can be more inaccurate than those produced by PTP or PHC2SYS directly.

Methods:

  • dst

    The clock to measure the difference to

  • src

    The clock to measure the difference from

Attributes:

  • diff_ns (int) –

    The difference in nanoseconds, i.e. `time(dst) - time(src)``

diff_ns instance-attribute

diff_ns: int

The difference in nanoseconds, i.e. `time(dst) - time(src)``

dst

dst() -> ClockId

The clock to measure the difference to

src

src() -> ClockId

The clock to measure the difference from