You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Mikhail Mazurskiy (JIRA)" <ji...@apache.org> on 2015/03/22 09:24:10 UTC
[jira] [Created] (LOG4J2-982) Use System.nanoTime() to measure time
intervals
Mikhail Mazurskiy created LOG4J2-982:
----------------------------------------
Summary: Use System.nanoTime() to measure time intervals
Key: LOG4J2-982
URL: https://issues.apache.org/jira/browse/LOG4J2-982
Project: Log4j 2
Issue Type: Improvement
Components: Core, Flume Appender
Reporter: Mikhail Mazurskiy
Priority: Minor
Unlike {{System.currentTimeMillis()}}, which can jump/slew forward and backwards, {{System.nanoTime()}} is a monotonic clock (at least it should be) and hence it should be used to measure time intervals (timeouts/delays/etc).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org