Expand description
Time utilities for telemetry timestamping.
This module provides time-related functionality for telemetry data collection. It abstracts over different time sources depending on the platform and feature configuration.
ยงPlatform Support
std: Uses system time with high precisionfreertos: Uses FreeRTOS time utilitiesno_std: Uses monotonic time sources
ยงTimestamp Format
All timestamps are represented as nanoseconds since an epoch. The specific epoch depends on the platform and configuration:
- With
system_timefeature: Unix epoch (1970-01-01 00:00:00 UTC) - Without
system_timefeature: Arbitrary system start time
Structsยง
- Duration ๐
- Duration represents a span of time.
- Exceeded ๐
- A
TimeAbstraction::timeout_atreached the deadline before the future resolved. - Instant ๐
- An Instant in time. Instants should be always increasing and are generally obtainable through the operating system time driver.
- Time ๐
- Implements the
TimeAbstractiontrait for standard Rust. - Timestamp
- A timestamp with nanosecond resolution.
Enumsยง
- System
Time ๐Error - An error that may happen while working with System Time.
Traitsยง
- Interval ๐
- A stream of periodic ticks, created by
TimeAbstraction::interval. - System
Time ๐ - Provides a measurement of the system time.
- System
Time ๐Sync - Allows manual synchronization of
SystemTime. - Time
Abstraction ๐ TimeAbstractionis used to perform time-related operations in a platform-agnostic manner.
Functionsยง
- now ๐