pub enum ClockType {
SystemTime,
SteadyTime,
RosTime,
}Expand description
Type of clock to use for time queries
Variants§
SystemTime
System time (wall clock)
This clock reflects the system’s real-time clock and may be affected by NTP adjustments, user changes, or daylight saving time. Use for timestamps that need to correlate with real-world time.
SteadyTime
Steady/monotonic time
This clock is guaranteed to be monotonically increasing and is not affected by system time changes. Use for measuring durations and timeouts.
RosTime
ROS time (simulation time)
This clock can be overridden for simulation purposes. When a
ROS time override is active, now() returns the overridden time.
Otherwise, it falls back to system time.
Trait Implementations§
impl Copy for ClockType
impl Eq for ClockType
impl StructuralPartialEq for ClockType
Auto Trait Implementations§
impl Freeze for ClockType
impl RefUnwindSafe for ClockType
impl Send for ClockType
impl Sync for ClockType
impl Unpin for ClockType
impl UnsafeUnpin for ClockType
impl UnwindSafe for ClockType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more