This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unknown issue when using time.h library

Hello everybody,

I am trying to calculate the time spent by the controller (LM3S2965) between 2 moments of time

The following syntax:

clock_t interval;

ENTER A CONDITIONAL
interval = clock();
Send the interval
. .
. .
ENTER AGAIN THE SAME CONDITIONAL
intrerval = clock();
Send the interval

does compile but after compilation the controller acts as it is blocked.
If I comment the line "interval = clock()" it functions again.

I cannot figure out what is the problem.
Thank you in advance!!!