pub fn register_clock(clock: impl Clock) {
    let clock: Box<dyn Clock> = Box::new(clock);
    let clock = Box::new(clock);
    // FIXME: This isn't entirely clean as this should really be
    // compare_and_swap, but we can't do that on every platform.
    if !CLOCK.load(atomic::Ordering::SeqCst).is_null() {
        panic!("The clock has already been registered");
    }
    CLOCK.store(Box::into_raw(clock), atomic::Ordering::SeqCst);
}
/// Registers a clock as the global handler for providing the high precision
/// time stamps on a `no_std` target.
Registers a clock as the global handler for providing the high precision
time stamps on a `no_std` target.
Registers a clock as the global handler for providing the high precision time stamps on a ` no_std ` target .
pub fn register_clock(clock: impl Clock) {
    let clock: Box<dyn Clock> = Box::new(clock);
    let clock = Box::new(clock);
    // FIXME: This isn't entirely clean as this should really be
    // compare_and_swap, but we can't do that on every platform.
    if !CLOCK.load(atomic::Ordering::SeqCst).is_null() {
        panic!("The clock has already been registered");
    }
    CLOCK.store(Box::into_raw(clock), atomic::Ordering::SeqCst);
}
pub fn register_clock ( clock : impl Clock ) { let clock : Box < dyn Clock > = Box :: new ( clock ) ; let clock = Box :: new ( clock ) ; // FIXME: This isn't entirely clean as this should really be // compare_and_swap, but we can't do that on every platform. if ! CLOCK . load ( atomic :: Ordering :: SeqCst ) . is_null ( ) { panic ! ( " " ) ; } CLOCK . store ( Box :: into_raw ( clock ) , atomic :: Ordering :: SeqCst ) ; }
Registers a clock as the global handler for providing the high precision
time stamps on a `no_std` target.
Registers a clock as the global handler for providing the high precision time stamps on a ` no_std ` target .
clock
impl Clock
clock
impl Clock