[Ace-users] [ace-users] measurement with ACE_High_Res_Timer

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Sun Dec 2 21:04:32 CST 2007


Hi Ricardo,

> I need to measure the execution time related to one block of code,
> and i want to do this without any interference produced by signals,
> thread context switches or other tasks with higher priorities.
> Since the measurement has been initiated, this code becomes a
> critical section. Here, "atomic operation" is only to describe a
> procedure without any interruption until the end of measurement.

There's no easy/portable way to do this - I suspect you'll need to
disable signals and run the thread at the highest real-time priority
to avoid an preemption.  If anyone else has a better suggestion please
let us know.

Thanks,

        Doug
-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list