Re: Time measurement unit.
Posted: Fri Mar 08, 2013 3:49 pm
It is possible you problem is external, try to rewite the task as follow:
Also note that the measurement has 3 distinct outputs: last, worst, best.
Giovanni
Code: Select all
while (TRUE) {
chBSemWait(&semaphore);
tmStartMeasurement(&TimeMonitor);
doStuff();
chThdSleepMicroseconds(5000);
tmStopMeasurement(&TimeMonitor);
}
Also note that the measurement has 3 distinct outputs: last, worst, best.
Giovanni