httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49251] New: Add %M microsecond time format (complements strftime(), not the same as %D)
Date Wed, 05 May 2010 12:26:22 GMT

           Summary: Add %M microsecond time format (complements
                    strftime(), not the same as %D)
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_log_config

Created an attachment (id=25400)
 --> (
diff -bu modules/loggers/mod_log_config.{c.old, c}

%D uses the microtime call family to provide microsecond granularity runtime by
using the apr current time and the start time.

But, there is no direct printout of the time in microseconds from the uint64 OS
provided source. 

While I appreciate that microsecond time granularity is highly conditional and
cannot be relied on, this is a useful diagnostic print field, and is applicable
for a certain class of use of apache logs to compare behaviours in the same
system over time.

This complements %D. combined with %D, this time can be used to derive the
microsecond time period for arrival of the request, as well as completion.

strftime() does not provide a field for this directly. %s is it.

So, this is distinct from %t and %{format} and %D.

its based on the code for %D, its the minimum change which worked. I took the
%M letter since a) its not in use and b) it made sense as M(icrotime)

Tested on FreeBSD. 'it works' (tm)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message