Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4947E19485 for ; Fri, 29 Apr 2016 22:28:18 +0000 (UTC) Received: (qmail 95756 invoked by uid 500); 29 Apr 2016 22:28:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95664 invoked by uid 500); 29 Apr 2016 22:28:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95627 invoked by uid 99); 29 Apr 2016 22:28:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2016 22:28:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DFE902C1F54 for ; Fri, 29 Apr 2016 22:28:12 +0000 (UTC) Date: Fri, 29 Apr 2016 22:28:12 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1223) StopWatch should provide getTime() which accepts TimeUnit 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/LANG-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15264883#comment-15264883 ] Gary Gregory commented on LANG-1223: ------------------------------------ Patches welcome! > StopWatch should provide getTime() which accepts TimeUnit > --------------------------------------------------------- > > Key: LANG-1223 > URL: https://issues.apache.org/jira/browse/LANG-1223 > Project: Commons Lang > Issue Type: Improvement > Reporter: Ted Yu > Priority: Minor > > I was migrating code which used Guava Stopwatch to using org.apache.commons.lang.time.StopWatch > {code} > double throughputCells = (double)numCells / scanTimer.elapsedTime(TimeUnit.SECONDS); > {code} > I had to do conversion after calling getTime(). > StopWatch should provide getTime() which accepts TimeUnit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)