Hi all.

I'm new to NuttX.

I'm not sure if it's no problem me asking some personal question about NuttX here. (please tell me if better place to ask.)

by the way, I have made my app in apps/examples/<my app>. It's working well.  Now, I would like to measure elapsed time during processing a program by put codes like below.


//*** start measurement

unsigned long start = now();

~~~ do some works

unsigned long finish = now();

unsigned long elapsed = finish - start;

//*** end


How can I do this?


[My Development Environment]

<Host PC>
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

<Board>
Nucleo-F767ZI


Yuta Ide

Reply via email to