Struct SystemClock
pub struct SystemClock;Expand description
The clock used by the core system/RTOS
This clock is by the system for time bound operations such as thread sleeping, waiting on mutexes/semaphores, etc. The clock’s rate is system dependent.
Trait Implementations§
§impl Clock for SystemClock
impl Clock for SystemClock
§const TICKS_PER_SEC: u64 = 1_000_000_000
const TICKS_PER_SEC: u64 = 1_000_000_000
The number of clock ticks per second.
§fn now() -> Instant<SystemClock>
fn now() -> Instant<SystemClock>
Returns the current time
Instant according to this clock.Auto Trait Implementations§
impl Freeze for SystemClock
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnsafeUnpin for SystemClock
impl UnwindSafe for SystemClock
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