[Ace-users] ACE Time probe

sunil sunilsreenivas2001 at yahoo.com
Fri Dec 28 12:21:06 CST 2007


After looking deeply at various classes, seems like ACE_High_Res_Timer
is the answer for what I am trying to do... I apologize if my
questions below are too naive.... Am new to ACE....
Thanks

On Dec 28, 11:59 am, sunil <sunilsreenivas2... at yahoo.com> wrote:
> Hello,
>  I have a ace server made up of multiple ace tasks, I need to compute
> time each thread spends processing (do it doesnt include time waiting
> in getq()). I orignally thought of using gettimeofday() after coming
> out of the getq() and before entering wait again and compute the
> processingtime as difference between these two. Do this over some
> window (add up the times during this time) and get %time its doing
> work. Then when browsing ace class hierarchy I came across ace time
> probes. THey seem to do similar things..
> a)What is the advantage of using time probes as opposed to taking
> above approach. (Using gettimeofday())
> b)Secondly I looked at documentation for class, all I want to do is
> adding up processing time over some time window. However this class
> only seems to have ability to print the the times between two
> successive probes (correct me if I am wrong) but doesnt seem to have
> abikity to give back to me the time difference..... I want this number
> as I want to keep on adding it over some time interval and then
> compute the % and publish it... Is there a way to do this or should I
> just stick with my idea.
> Thank You,
> Sunil



More information about the Ace-users mailing list