[][src]Function mynewt::kernel::os::os_cputime_nsecs_to_ticks

pub unsafe extern "C" fn os_cputime_nsecs_to_ticks(nsecs: u32) -> u32

Converts the given number of nanoseconds into cputime ticks. Not defined if OS_CPUTIME_FREQ_PWR2 is defined.

Return: uint32_t The number of ticks corresponding to 'nsecs'