tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56966] AccessLogValve's elapsed time has 15ms precision on Windows
Date Mon, 01 Dec 2014 18:14:30 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56966

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

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

--- Comment #1 from Konstantin Kolinko <knst.kolinko@gmail.com> ---
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
End-of-life.


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message