commons-issues mailing list archives

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


ASF GitHub Bot commented on LANG-1223:

GitHub user NickManley opened a pull request:

    LANG-1223: Add StopWatch#getTime(TimeUnit)


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

    $ git pull LANG-1223

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

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 <>
Date:   2016-05-21T18:53:49Z

    LANG-1223: Add StopWatch#getTime(TimeUnit)


> StopWatch should provide getTime() which accepts TimeUnit
> ---------------------------------------------------------
>                 Key: LANG-1223
>                 URL:
>             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

View raw message