I am trying the two functions:
k_cycle_get_32() and k_uptime_get(). From what I understand, k_cycle_get_32() uses the hardware clock and k_uptime_get() uses the system clock.
However, the k_uptime_get() doesn't seem to be working for me as it always returns 0 whereas k_cycle_get_32() always return a value.
I am running this on the qemu_cortex_m3 board.
Any help would be much appreciated. Thanks.