<p>How can you measure the amount of time a function will take to execute? </p>

<p>This is a relatively short function and the execution time would probably be in the millisecond range.</p>

<p>This particular question relates to an embedded system, programmed in C or C++.</p>

```
```
start_time = timer
function()
exec_time = timer - start_time
```
```