Challenge
Measure the time a program and its functions take to execute as part of the diagnosis phase of performance optimization. Such measurements are extremely valuable as a simple means to become familiar with how an application behaves during execution.
Solution
Use either the Linux time command or the clock function in the C library, and profile the application during compilation. The time command is used as follows:
prompt> time
It gives the following information:

