]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/org/simantics/db/procore/cluster/Stopwatch.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.procore / src / org / simantics / db / procore / cluster / Stopwatch.java
index a0cbe155b26936ad28d8c8a8e89acb99fcfd98a5..5bc10e0527cab58dd685a902c54fd641df931d6f 100644 (file)
@@ -1,27 +1,27 @@
-package org.simantics.db.procore.cluster;\r
-\r
-//Simple class for measuring time.\r
-public class Stopwatch\r
-{\r
-    public final void start() { // Starts measuring time.\r
-        start = System.nanoTime();\r
-    }\r
-    public final void stop() { // Ends measuring time, increases the amount of elapsed time.\r
-        time += (double)(System.nanoTime() - start) * (double)(1e-9);\r
-    }\r
-    public final void reset() { // Set elapsed time to zero.\r
-        time = 0;\r
-    }\r
-    public final void restart() { // Reset and starts measuring time.\r
-        this.reset();\r
-        this.start();\r
-    }\r
-    public final double elapsed() { // Returns elapsed time in seconds.\r
-        return time;\r
-    }\r
-    public final double elapsedMilli() { // Returns elapsed time in milliseconds.\r
-        return time * 1e3;\r
-    }\r
-    private long start;\r
-    private double time;\r
-}\r
+package org.simantics.db.procore.cluster;
+
+//Simple class for measuring time.
+public class Stopwatch
+{
+    public final void start() { // Starts measuring time.
+        start = System.nanoTime();
+    }
+    public final void stop() { // Ends measuring time, increases the amount of elapsed time.
+        time += (double)(System.nanoTime() - start) * (double)(1e-9);
+    }
+    public final void reset() { // Set elapsed time to zero.
+        time = 0;
+    }
+    public final void restart() { // Reset and starts measuring time.
+        this.reset();
+        this.start();
+    }
+    public final double elapsed() { // Returns elapsed time in seconds.
+        return time;
+    }
+    public final double elapsedMilli() { // Returns elapsed time in milliseconds.
+        return time * 1e3;
+    }
+    private long start;
+    private double time;
+}