| Apache2-RequestRec-Time documentation | Contained in the Apache2-RequestRec-Time distribution. |
Apache2::RequestRec::Time - Bring microseconds to Apache2::RequestRec
use Apache2::RequestRec::Time (); # have Apache2::RequestRec object $r my $duration = $r->request_duration_microseconds();
The Apache2::RequestRec::Time extends the Apache2::RequestRec
functionality with method request_duration_microseconds(). That
makes it possible to retrieve from Perl information equivalent to
Custom Log Format's %D: the time taken to serve the request, in
microseconds.
Parameters: $r: Apache2::RequestRec object
Returns: time taken to serve the request, in microseconds. Actually, it's time since $r->request_time(). It is equivalent to %D in Custom Log Formats.
Parameters: $r: Apache2::RequestRec object
Returns: time taken to serve the request, in seconds. Equivalent to %T in Custom Log Formats.
Parameters: $r: Apache2::RequestRec object
Returns: time the request was received, in microseconds since epoch. This is microsecond-ish variant of $r->request_time().
1.1
http://www.adelton.com/perl/Apache2-RequestRec-Time/
(c) 2009--2011 Jan Pazdziora.
Contact the author at jpx dash perl at adelton dot com.
Licensed under the Apache License, Version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
| Apache2-RequestRec-Time documentation | Contained in the Apache2-RequestRec-Time distribution. |
package Apache2::RequestRec::Time; use 5.008000; use strict; use warnings FATAL => 'all'; our $VERSION = '1.1'; use XSLoader (); XSLoader::load('Apache2::RequestRec::Time', $VERSION); 1;