You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2016/05/27 15:13:30 UTC

[2/2] [lang] LANG-1223: Add StopWatch#getTime(TimeUnit)

LANG-1223: Add StopWatch#getTime(TimeUnit)

add since java doc tag and changes.xml entry


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/2244ed9d
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/2244ed9d
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/2244ed9d

Branch: refs/heads/master
Commit: 2244ed9d63e037a85e1ab2ab2bc9b98f12a833dd
Parents: fd59e54
Author: pascalschumacher <pa...@gmx.net>
Authored: Fri May 27 17:13:03 2016 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Fri May 27 17:13:03 2016 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                    | 1 +
 src/main/java/org/apache/commons/lang3/time/StopWatch.java | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/2244ed9d/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4f87fcc..7fd5f0f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -22,6 +22,7 @@
   <body>
 
   <release version="3.5" date="tba" description="tba">
+    <action issue="LANG-1223" type="add" dev="pschumacher" due-to="Nick Manley">Add StopWatch#getTime(TimeUnit)</action>
     <action issue="LANG-781" type="add" dev="pschumacher" due-to="Krzysztof Wolny">Add methods to ObjectUtils class to check for null elements in the array</action>
     <action issue="LANG-1228" type="add" dev="pschumacher" due-to="Brad Hess">Prefer Throwable.getCause() in ExceptionUtils.getCause()</action>
     <action issue="LANG-1233" type="add" dev="pschumacher" due-to="Nick Manley">DiffBuilder add method to allow appending from a DiffResult</action>

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/2244ed9d/src/main/java/org/apache/commons/lang3/time/StopWatch.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/time/StopWatch.java b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
index 7225ae2..884f3fb 100644
--- a/src/main/java/org/apache/commons/lang3/time/StopWatch.java
+++ b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
@@ -351,6 +351,7 @@ public class StopWatch {
      * 
      * @param timeUnit the unit of time, not null
      * @return the time in the specified TimeUnit, rounded down
+     * @since 3.5
      */
     public long getTime(final TimeUnit timeUnit) {
         return timeUnit.convert(getNanoTime(), TimeUnit.NANOSECONDS);