On Tuesday, May 24, 2011 17:30:33 marco wrote:
> I want to get the response time that Apache spends to serve a request 
> (from post-read-request phase to the response phase).

PerlPostReadRequestHandler "sub {                \
  use Time::HiRes();                             \
  use Apache2::RequestUtil();                    \
  $_[0]->pnotes->{starttime}=Time::HiRes::time;  \
  0;                                             \
}"

Then in the PerlResponseHandler you can do:

  $elapsed=Time::HiRes::time-$r->pnotes->{starttime};

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Reply via email to