You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jason Williams <jw...@wc-group.com> on 2004/06/25 19:02:26 UTC

[users@httpd] request time with more resolution

Hello,

I am using Apache 2.0.49 on a Debian box.  I have looked at
http://httpd.apache.org/docs-2.0/mod/mod_log_config.html and see the %D
option to get the response time in microseconds.  Is it possible to also get
the time the request arrived (or response left) in microsecond resolution
(or milli?) as well?  It seems the strftime format doesn't support this
(%{format}t).

Thanks,

Jason



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] request time with more resolution

Posted by Jason Williams <jw...@wc-group.com>.
Hello,

I was able to do this by modifying the source code in mod_log_config.c.  The
request time is already stored in number of microseconds since the epoch and
it's just a matter of printing it out without converting it.

Jason



>Hello,
>
>I am using Apache 2.0.49 on a Debian box.  I have looked at
>http://httpd.apache.org/docs-2.0/mod/mod_log_config.html and see the %D
>option to get the response time in microseconds.  Is it possible to also
get
>the time the request arrived (or response left) in microsecond resolution
>(or milli?) as well?  It seems the strftime format doesn't support this
>(%{format}t).
>
>Thanks,
>
>Jason



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org