//! Time units
pubusetm4c_hal::time::*;usecrate::sysctl::Clocks;implMonoTimer{/// Creates a new `Monotonic` timer
pubfnnew(mutdwt: DWT, clocks: Clocks)->Self{
dwt.enable_cycle_counter();// now the CYCCNT counter can't be stopped or resetted
drop(dwt);
MonoTimer {
frequency: clocks.sysclk(),}}}