[
https://issues.apache.org/jira/browse/LANG-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell closed LANG-323.
------------------------------
Resolution: Duplicate
Fix Version/s: (was: LangTwo 1.0)
This has been done in trunk. It's done inside Stopwatch.java with additional
getNano methods added to opt for the time in that format.
> StopWatch: increase precision by using System.nanoTime()
> --------------------------------------------------------
>
> Key: LANG-323
> URL: https://issues.apache.org/jira/browse/LANG-323
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Daniel Lindner
> Priority: Minor
>
> In Java5, theres a new, more precise way to measure elapsed timespans:
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#nanoTime()
> It will probably break the class contract of the current StopWatch class, as
> the returned timestamps cannot be transformed to Dates etc., but it will add
> precision to the stopwatch aspect (as opposed to the timewatch aspect) of the
> class.
> Perhaps the way to go is to introduce a new HighPrecisionStopWatch class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.