Chris Rose <email@example.com> wrote:
What’s a good way to check the response of my resource manager.
I did it this way and the start time and end time are equal.
ret=devctl(fd,MY_DEV_MSG, %arg, sizeof(arg), NULL);
Since start_time=end_time does that mean that the OS didn’t update the
clock? If this way won’t work, what is a good way?
All it means is that it took less than one second
Try “ClockCycles()”, it’ll give you a way more accurate snapshot.
Do this in a loop and average it out, taking note of min/max.
Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.