pub struct Srtc { /* private fields */ }
Expand description
The Secure Real-Time Clock, enabled.
Implementations§
source§impl Srtc
impl Srtc
sourcepub fn get(&self) -> u32
pub fn get(&self) -> u32
Get the current time as a count of seconds since some point in the past.
sourcepub fn get_with_ticks(&self) -> (u32, u16)
pub fn get_with_ticks(&self) -> (u32, u16)
Gets the current time as a tuple containing the count of seconds since some point in the past and the sub-second time as 32768Hz ticks.
sourcepub fn get_with_micros(&self) -> (u32, u32)
pub fn get_with_micros(&self) -> (u32, u32)
Gets the current time as a tuple containing the count of seconds since some point in the past and the sub-second time as microseconds.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Srtc
impl Send for Srtc
impl !Sync for Srtc
impl Unpin for Srtc
impl !UnwindSafe for Srtc
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