Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DAF117DEF for ; Mon, 13 Apr 2015 03:54:13 +0000 (UTC) Received: (qmail 17210 invoked by uid 500); 13 Apr 2015 03:54:13 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 17168 invoked by uid 500); 13 Apr 2015 03:54:13 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 17159 invoked by uid 99); 13 Apr 2015 03:54:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 03:54:13 +0000 Date: Mon, 13 Apr 2015 03:54:13 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-982) Use System.nanoTime() to measure time intervals MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491883#comment-14491883 ] Remko Popma commented on LOG4J2-982: ------------------------------------ The LOG4J2-993 deadlock issue has been resolved. The attached patch has not been committed to master yet, correct? Gary, did you find any issues with it apart from the deadlock? > 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 > Attachments: LOG4J2-982-v2.patch, LOG4J2-982.patch > > > 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