Clock Messages

Time synchronization types for multi-node and multi-process systems.

from horus import Clock, TimeReference

Clock

Timestamp message for clock distribution.

import horus

clock = horus.Clock(seconds=1679500000, nanoseconds=500000000)
FieldTypeDescription
secondsintSeconds since epoch
nanosecondsintNanosecond offset (0-999999999)

TimeReference

Named time source reference.

ref = horus.TimeReference(source="gps", timestamp_ns=horus.timestamp_ns())
FieldTypeDescription
sourcestrTime source name
timestamp_nsintNanosecond timestamp

See Also