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!!!
nooooo. I mean have you got a real time clock?
Keil is going to need you to supply code that targets your board, and the specific clock implementation you are using. If you haven't added any code, don't expect it to magically work.
www.keil.com/.../armlib_chr1358938938946.htm
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.