tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 56966] AccessLogValve's elapsed time has 15ms precision on Windows
Date Mon, 01 Dec 2014 18:14:30 GMT

Konstantin Kolinko <> changed:

           What    |Removed                     |Added
                 OS|                            |All
           Severity|normal                      |enhancement

--- Comment #1 from Konstantin Kolinko <> ---
I see 1ms precision when running on Windows 7. I see 1ms running on Linux.
The last time when I observed 10ms was Windows XP, but Windows XP is now

Note that System.nanoTime() has caveats. It makes sense only when measuring
time intervals. It cannot be used to measure current time.

req.getStartTime() is used as wall clock time value. It means that there has to
be another field in addition to req.getStartTime(). It also means that there
needs to be a change to the Log interface to pass a nano time value in addition
to milli time one.

Is there much interest in measuring times shorter than 1ms? Usually there is an
interest in requests that take a long time.

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