Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1223

StopWatch should provide getTime() which accepts TimeUnit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.5
    • lang.time.*
    • None

    Description

      I was migrating code which used Guava Stopwatch to using org.apache.commons.lang.time.StopWatch

         double throughputCells = (double)numCells / scanTimer.elapsedTime(TimeUnit.SECONDS);
      

      I had to do conversion after calling getTime().

      StopWatch should provide getTime() which accepts TimeUnit.

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: