[Ace-users] [ace-users] measurement with ACE_High_Res_Timer
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Sun Dec 2 19:47:58 CST 2007
Thanks for using the PRF.
> CIAO version 0.6.10
> TAO version 1.6.10
> ACE VERSION: 5.6.1
> HOST MACHINE and OPERATING SYSTEM:
> Centrino Duo Core, Ubuntu 7.0.4-Feisty, kernel 2.6.20-16-generic
> COMPILER NAME AND VERSION (AND PATCHLEVEL):
> gcc (GCC) 4.1.2
> THE $ACE_ROOT/ace/config.h FILE:
> #include "ace/config-linux.h"
> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features:
> [there is no default.features file, but the gnuace and global
> DOES THE PROBLEM AFFECT:
> COMPILATION? no
>In ACE_High_Res_Timer class i don't see anything that prevents an external interference between start and stop methods. I need to measure a block of code like an atomic operation.
What do you mean by "atomic operation"?
> How can i do this? The sample code below depicts a measurement process:
>block of code;
>is The ACE_Sig_Guard class capable to guarantee this level of isolation or is there another better solution?
It's not really clear what you are trying to be atomic wrt, e.g.,
signals, thread context switches, etc., so can you please clarify this
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