commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1223) StopWatch should provide getTime() which accepts TimeUnit
Date Fri, 29 Apr 2016 22:00:14 GMT
Ted Yu created LANG-1223:
----------------------------

             Summary: 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