I'm looking for some code profiles in a real-time operating system, RTEMS
mandatory form From, to read the time, there is a bunch of gems of work, in which the most useful is rtems_clock_get_ticks_since_boot
.
The problem here is that for whatever reason the clock timer reported, our state machine loop rate is synchronized with 5kHz
, while the processor is almost 200MHz Running on
(embedded system). I know this because I recorded the time of the clock, waited for 1 second and only 5000 went off.
So the question is:
How do I get real CPU tunes from RTEMS?
PS clock ()
with GNU C (the same problem)
is a guide I see, but me < Code> impossible impedance in asm which indicates that I have to use some different codeer keywords. Maybe someone can tell me something like this?
Reference
I want to code some code, so essentially:
start = cpu_clock_ticks ( ) // some code time = cpu_clock_ticks () - get started;
The code runs in less than 0.125 ms, so the 8khz counter clock ()
and other functions get the function, do not cut it.
No comments:
Post a Comment