Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7D08E200AEF for ; Sat, 28 May 2016 12:52:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7BE2D160A34; Sat, 28 May 2016 10:52:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E9472160969 for ; Sat, 28 May 2016 12:52:13 +0200 (CEST) Received: (qmail 70447 invoked by uid 500); 28 May 2016 10:52: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 70427 invoked by uid 99); 28 May 2016 10:52:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 May 2016 10:52:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D9F292C1F5D for ; Sat, 28 May 2016 10:52:12 +0000 (UTC) Date: Sat, 28 May 2016 10:52:12 +0000 (UTC) From: "Pascal Schumacher (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 archived-at: Sat, 28 May 2016 10:52:14 -0000 [ https://issues.apache.org/jira/browse/LANG-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1223: ------------------------------------ Component/s: lang.time.* > 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 > Components: lang.time.* > Reporter: Ted Yu > Priority: Minor > Fix For: 3.5 > > > 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)