You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2007/02/15 10:30:05 UTC

[jira] Updated: (LANG-323) StopWatch: increase precision by using System.nanoTime()

     [ https://issues.apache.org/jira/browse/LANG-323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-323:
-------------------------------

    Fix Version/s: JDK 5.0 features

Marking as a JDK5 feature. Thanks for the suggestion - I'm hoping to put together enough interesting ideas for the next Lang to 5.0 specific.

> 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
>             Fix For: JDK 5.0 features
>
>
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org