Polished

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/413646ad
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/413646ad
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/413646ad

Branch: refs/heads/master
Commit: 413646ad765be1f5927f0b6b0c6d4b585a21f46f
Parents: d997788
Author: Claus Ibsen <davscl...@apache.org>
Authored: Thu Jun 1 19:38:42 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Thu Jun 1 19:38:42 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/util/StopWatch.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/413646ad/camel-core/src/main/java/org/apache/camel/util/StopWatch.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/StopWatch.java 
b/camel-core/src/main/java/org/apache/camel/util/StopWatch.java
index e82adbc..831eb89 100644
--- a/camel-core/src/main/java/org/apache/camel/util/StopWatch.java
+++ b/camel-core/src/main/java/org/apache/camel/util/StopWatch.java
@@ -46,11 +46,11 @@ public final class StopWatch {
     /**
      * Creates the stop watch
      *
-     * @param started whether it should start immediately
+     * @param start whether it should start immediately
      */
-    public StopWatch(boolean started) {
-        if (started) {
-            restart();
+    public StopWatch(boolean start) {
+        if (start) {
+            this.start = System.currentTimeMillis();
         }
     }
 

Reply via email to