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!!!
Thank you! I have checked the content of time.h and it doesn t have any specific implementation. You are right. I have to write code!
Random embedded never hardware never have any default clock that will work since no default clock code would have any idea about the capabilities of random hardware.