commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1223) StopWatch should provide getTime() which accepts TimeUnit
Date Sat, 21 May 2016 18:58:14 GMT

    [ https://issues.apache.org/jira/browse/LANG-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15295201#comment-15295201
] 

ASF GitHub Bot commented on LANG-1223:
--------------------------------------

GitHub user NickManley opened a pull request:

    https://github.com/apache/commons-lang/pull/152

    LANG-1223: Add StopWatch#getTime(TimeUnit)

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/NickManley/commons-lang LANG-1223

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/152.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #152
    
----
commit 9f6797d93172b1d79298e5ca63e995f2242f3f04
Author: Nick Manley <nickmanley89@outlook.com>
Date:   2016-05-21T18:53:49Z

    LANG-1223: Add StopWatch#getTime(TimeUnit)

----


> 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)

Mime
View raw message