Embark on executing your program in a shell with "time", that is:
user@linux :~$ time c_program_name
Running the following, for example:
sampson-chen@linux :~/src/reviewboard$ time ls -R
It gives the following results:
real 0m0.046s user 0m0.008s sys 0m0.012s
See the time guide for adjusting display / accuracy / detail formats.
source share