Skip to main content

k_cycle_get_64

Function k_cycle_get_64 

Source
pub unsafe extern "C" fn k_cycle_get_64() -> u64
Expand description

@brief Read the 64-bit hardware clock.

This routine returns the current time in 64-bits, as measured by the system’s hardware clock, if available.

@note Requires @kconfig{CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER}. When that option is not enabled this routine asserts and returns 0.

@see CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER

@return Current hardware clock up-counter (in cycles).