cu29::prelude

Trait ClockProvider

pub trait ClockProvider {
    // Required method
    fn get_clock(&self) -> RobotClock;
}
Expand description

A trait to provide a clock to the runtime.

Required Methods§

fn get_clock(&self) -> RobotClock

Implementors§

Source§

impl<CT, P, M, const NBCL: usize> ClockProvider for CuRuntime<CT, P, M, NBCL>

To be able to share the clock we make the runtime a clock provider.