Trait SystemTime

Source
pub trait SystemTime {
    // Required method
    fn duration_since_epoch() -> Result<Duration, SystemTimeError>;
}
Expand description

Provides a measurement of the system time.

Required Methods§

Source

fn duration_since_epoch() -> Result<Duration, SystemTimeError>

Calculates the Duration elapsed since epoch.

§Notes

OSAL implementations might require time to be synchronized by using the SystemTimeSync before using this function. Review the documentation on the implementation you are using to learn platform-specific information.

§Errors

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SystemTime for veecle_os::osal::freertos::time::Time

Source§

impl SystemTime for veecle_os::osal::std::time::Time

§

impl SystemTime for veecle_os::osal::embassy::time::Time