commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Lindner (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-323) StopWatch: increase precision by using System.nanoTime()
Date Thu, 15 Feb 2007 09:19:05 GMT
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.


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


Mime
View raw message