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)
| Field | Type | Description |
|---|---|---|
seconds | int | Seconds since epoch |
nanoseconds | int | Nanosecond offset (0-999999999) |
TimeReference
Named time source reference.
ref = horus.TimeReference(source="gps", timestamp_ns=horus.timestamp_ns())
| Field | Type | Description |
|---|---|---|
source | str | Time source name |
timestamp_ns | int | Nanosecond timestamp |
See Also
- Clock API — Framework time functions (
now(),dt()) - Rust Clock Messages — Rust equivalent