Hi Friends!
I want to do this on the nrf52840:
time start
do some code
time stop
print stop-start and get time
Im using nrf connect extension for VScode
Does anybody know how to do this?
Thanks!
Hi Friends!
I want to do this on the nrf52840:
time start
do some code
time stop
print stop-start and get time
Im using nrf connect extension for VScode
Does anybody know how to do this?
Thanks!
Hi,
You could use the kernel timing functionality to track and time your code. In addition to this library, the Nordic Academy NCS funcamentals course contains a topic on multithreaded applications which uses k_uptime_get() and k_uptime_delta to monitor elapsed runtime of a function.
I believe these two resources should be sufficient to perform the desired task! Let me know if you have any more questions regarding this topic!
Kind regards,
Andreas