commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-1223) StopWatch should provide getTime() which accepts TimeUnit
Date Sat, 28 May 2016 10:52:12 GMT

     [ https://issues.apache.org/jira/browse/LANG-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher resolved LANG-1223.
-------------------------------------
       Resolution: Fixed
         Assignee: Pascal Schumacher
    Fix Version/s: 3.5

> 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
>            Assignee: Pascal Schumacher
>            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)

Mime
View raw message